Grep for Windows 7?

Discussion in 'Software for Windows' started by homercles337, Nov 15, 2009.

  1. homercles337

    homercles337 Diamond Member

    Joined:
    Dec 29, 2004
    Messages:
    6,337
    Likes Received:
    0
    Apparently MS didnt feel the need to offer a grep style search in Win7, and sadly wingrep is broken in Win7. Does anyone have any other ideas for grep in windows?
     
  2. MrChad

    MrChad Lifer

    Joined:
    Aug 22, 2001
    Messages:
    13,505
    Likes Received:
    0
  3. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Or "find" although it's not nearly as capable as grep. Or the grep command from unxutils?
     
  4. derrick2237

    derrick2237 Member

    Joined:
    Jan 4, 2005
    Messages:
    47
    Likes Received:
    0
  5. theevilsharpie

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,321
    Likes Received:
    0
    Use the Select-String powershell cmdlet.
     
  6. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Ah, if only PowerShell wasn't such a shitty shell...
     
  7. theevilsharpie

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,321
    Likes Received:
    0
    It beats the NT command interpreter.
     
  8. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Not for interactive use, not by a long shot. PowerShell isn't a terrible scripting language, but it's a horrid shell which is ironic because what Windows really needed was a good shell.
     
  9. theevilsharpie

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,321
    Likes Received:
    0
    How exactly is Powershell worse for interactive use?
     
  10. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    It's been a while since I had to use it so I don't have a specific list. I guess from a purely capability standpoint it's better, but that doesn't make it a good shell. And while being able to run normal Windows CLI apps is nice it's pretty pointless since they emit text instead of .Net objects and so can't be in the normal PS pipeline.

    What MS really needs to do is fix CSRSS and their terminal emulation. Not being able to dynamically resize the terminal window in the year 2009 should be downright embarrassing for them.