Andre Kirchner wrote:
Jin,

find works fine when you know the complete name of the
file, but in case you want to look for a file which
has the "host" substring in the name for example, try

find / | grep host

or if you even doesn't know if this substring has
capital letters or not, try

find / | grep -i host

Or, perhaps better:

find / -name '*host*' -print

- you can use a regular expression under -name if it is quoted (to avoid having the shell expand it). find is extremely handy; have a look in the man page. I find the -exec option particularly useful.

/jan





--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to