Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Grep vs. Windows Explorer Search  (Read 4348 times)

0 Members and 1 Guest are viewing this topic.

april

    Topic Starter


    Rookie

    Grep vs. Windows Explorer Search
    « on: November 03, 2007, 03:32:36 AM »
    Sometimes I need to search through a long list of .txt files to find certain strings so I know
    which files have the strings and what's on each line that has the strings.

    When I use Windows Explorer to search for a string, it displays all the files that has the string
    but it does not display the content of the lines that has the string.

    Grep is the better tool but the problem is it returns back nothing.  I tried different grep
    programs like Windows Grep and command line grep and got the same result.

    Here's what I typed in:

    grep -i help *.txt

    Does anyone have any suggestions?

    contrex

    • Guest
    Re: Grep vs. Windows Explorer Search
    « Reply #1 on: November 03, 2007, 04:45:36 AM »
    1. What version of Windows are you using?

    2. Depending on the answer to (1), FINDSTR might be helpful. Type findstr /? at the prompt.






    WillyW



      Specialist
    • Thanked: 29
    • Experience: Experienced
    • OS: Windows XP
    Re: Grep vs. Windows Explorer Search
    « Reply #2 on: November 03, 2007, 09:59:51 AM »
    Sometimes I need to search through a long list of .txt files to find certain strings so I know
    which files have the strings and what's on each line that has the strings.

    When I use Windows Explorer to search for a string, it displays all the files that has the string
    but it does not display the content of the lines that has the string.

    Grep is the better tool but the problem is it returns back nothing.  I tried different grep
    programs like Windows Grep and command line grep and got the same result.

    Here's what I typed in:

    grep -i help *.txt

    Does anyone have any suggestions?

    List.com might do what you need.

    Uncrippled shareware from ages ago.    I like it, and keep it in my path.

    To seach through a bunch of .txt files looking for specific text:

                   list *.txt /fsearch_string_here

    then use   alt-a    to continue searching.


    List.com may be downloaded here:
    http://www.oregonfast.net/~steen/msdos.htm

    The zip file includes a nice    list.doc   file too.

    .



    april

      Topic Starter


      Rookie

      Re: Grep vs. Windows Explorer Search
      « Reply #3 on: November 03, 2007, 04:03:26 PM »
      I use Windows XP.