The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Search for files function

    Discussion in 'Linux Compatibility and Software' started by ral, Dec 9, 2010.

  1. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    I noticed that with Ubuntu 10.10 that when I search for files it only reads the file name and not the document itself. With Windows, the search function can read the documents and find the words you a looking for even if they are in the text and not only by looking at the file name. Does Linux have a more powerful search tool.
     
  2. debguy

    debguy rip dmr

    Reputations:
    607
    Messages:
    893
    Likes Received:
    4
    Trophy Points:
    31
    I guess the search tool you use is just a GUI frontend for find. What you are looking for is something that uses grep (or grep itself).
     
  3. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    That is correct. I am just using the tool on the GUI. Will read up of grep. Thanks.
     
  4. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    Okay, just installed Search Monkey... still cannot search the text on documents...
     
  5. ATG

    ATG 2x4 Super Moderator

    Reputations:
    3,306
    Messages:
    4,461
    Likes Received:
    344
    Trophy Points:
    151
  6. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    Thanks... searched beagle in the Ubuntu Software Center, and it gave me catfish. Installing catfish plus 3 add-ons (doodle, tracker and strigi-deamon) :)
     
  7. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    When I installed Catfish, only the "find" search method works. In find the option "Fulltext Search" is grayed out. The other search methods: locate, tracker, doodle and strigi do not seem to work.

    Thanks for all the help.
     
  8. ral

    ral Notebook Evangelist

    Reputations:
    19
    Messages:
    404
    Likes Received:
    0
    Trophy Points:
    30
    Tracker works!
     
  9. likuidkewl

    likuidkewl Notebook Enthusiast

    Reputations:
    0
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    5
    Just FYI if you didn't want to install all those programs you can do it really easy with grep, here is an example.

    # grep -i kernel `ls /var/log`
    this will search for the word kernel, not case sensitive, in the directory of /var/log, but will not recurse if you want that add the -r option.

    so applied you could always look wherever with simple substitutions

    Say you "lost" a paper for geology
    $grep -ir igneous `ls /home/timmy`

    so on and so forth.