Lorenzo Prince wrote:

Hmm. Try the following if you want to search within a specific directory:

for f in /directory/*; do grep "text" $f; done

or you can omit /directory/ if you want to search the current directory, so the command would look something like this:

for f in *; do grep "text" $f; done

I think this will do what you need it to do.
HTH.


That's a little complex why not grep "some text" /directory/*

Or grep -r "some text" /directory if you want to search all of the files in any directorys within a directory.

--
Once you have their hardware. Never give it back.
(The First Rule of Hardware Acquisition)
Sam Flory  <[EMAIL PROTECTED]>



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

Reply via email to