> 
> Search all files under the home directory (recursively) with an
> extension of .txt
> for the keyword "xorg":
> 
> grep -r xorg ~/*.txt

That looks like a misunderstanding. That command actually causes grep
to search
(a) files matching *.txt in the home directory.
(b) files of ANY name, contained in subdirectories named *.txt in the
home directory.

To search all files under the home directory (recursively) with an
extension of .txt, you will need to use find .. | xargs or find
.. -exec ... {} + as discussed previously,


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100918110117.ga5...@rimmer.esmertec.com

Reply via email to