LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   what tool can search for documents containing certain text? (https://www.linuxquestions.org/questions/linux-software-2/what-tool-can-search-for-documents-containing-certain-text-205980/)

jacksonscottsly 07-16-2004 03:58 PM

what tool can search for documents containing certain text?
 
i just want to know how to search my hard disk for which file contains text string X, like kfind or gnome's file search, but I don't want to install either. I use enlightenment, waimea, kahakai, and fluxbox. Any tools out there that will do a good job? I'd like one with a gui and one that's also commandline. thanks.

buffed317 07-16-2004 04:23 PM

the grep command should work. i have used it for find text within a single document but there should be an option to search multiple files. i guess you could use a wildcard for the filename. try man grep for more information.

zakaluka 07-19-2004 01:35 AM

grep, fgrep and egrep are designed exactly for this purpose. You can search entire directories, or just pass the names of all the files you'd like to search. Like buffed317 suggested, do 'man grep' or 'grep --help' for more information.

Regards,

zakaluka.

jacksonscottsly 07-19-2004 01:44 AM

yep, grep's fine, but is there something available in a gui, too?


All times are GMT -5. The time now is 04:09 PM.