This time, would you help me find a command for searching for a file if I
know
it's contents? I dont know the file name, just know what it would contain.


grep is your friend. man grep and you will find ways of doing that.

if you know the directory where the file may be, say you know its in
/usr/home then you can do

grep -R "whatever_text_you_know" /usr/home

that will search all the files  and enter any directories in /usr/home and
search the files therein as well and return file_name:text_found

regards,
mike
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to