Click to See Complete Forum and Search --> : Search harddisk for files


jorx
02-12-2006, 05:55 AM
Hi, I want to find a file on the harddisk that contains a certain text. I tried to use

grep -R text /

but after about 24 hours the program has not yet exited and no files were found even if I placed a file myself to test the program.

So how should I do it?

Regards
/J Lindroos

LNXchd
02-12-2006, 06:29 AM
Give this a whirl and see how it works for you...
#find / -type f -iname [your text files] -print
...the above will search your / directory for any files containing [whatever you decide..without the brackets, of course.] and prints the complete path to stdout.

man find (http://linuxcommand.org/man_pages/find1.html)

Chad

jorx
02-12-2006, 07:43 AM
I'll try it, thanks