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,346
    Likes Received:
    1
    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. Loading...

    Similar Threads - Grep Windows Forum Date
    VM and windows updates Software for Windows Sep 12, 2017
    Grep and xml files Software for Windows Oct 7, 2010
    Displaying the preceding or following line of a match using grep? Software for Windows Aug 29, 2006
    Grep for first word of first line in files? Software for Windows Aug 8, 2006
    What not to do with grep Software for Windows Jan 18, 2005

  3. MrChad

    MrChad Lifer

    Joined:
    Aug 22, 2001
    Messages:
    13,507
    Likes Received:
    2
  4. 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?
     
  5. derrick2237

    derrick2237 Member

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

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,323
    Likes Received:
    13
    Use the Select-String powershell cmdlet.
     
  7. Nothinman

    Nothinman Elite Member

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

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,323
    Likes Received:
    13
    It beats the NT command interpreter.
     
  9. 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.
     
  10. theevilsharpie

    theevilsharpie Platinum Member

    Joined:
    Nov 2, 2009
    Messages:
    2,323
    Likes Received:
    13
    How exactly is Powershell worse for interactive use?
     
  11. 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.