Re: Re: searching inside files with find, cat and grep as a oneliner ...

2010-09-20 Thread Adam Borowski
On Mon, Sep 20, 2010 at 09:11:59AM -0400, Stephen Powell wrote: > On Sat, 18 Sep 2010 08:40:31 -0400 (EDT), Adam Borowski wrote: > > On Sat, Sep 18, 2010 at 12:01:17PM +0100, Clive Standbridge wrote: > >> To search all files under the home directory (recursively) with an > >> extension of .txt, you

Re: Re: searching inside files with find, cat and grep as a oneliner ...

2010-09-20 Thread Stephen Powell
On Sat, 18 Sep 2010 08:40:31 -0400 (EDT), Adam Borowski wrote: > On Sat, Sep 18, 2010 at 12:01:17PM +0100, Clive Standbridge wrote: >> Stephen Powell wrote: >>> Search all files under the home directory (recursively) with an >>> extension of .txt >>> for the keyword "xorg": >>> >>> grep -r xorg ~/

Re: Re: searching inside files with find, cat and grep as a oneliner ...

2010-09-18 Thread Adam Borowski
On Sat, Sep 18, 2010 at 12:01:17PM +0100, Clive Standbridge wrote: > > 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 sear

Re: Re: searching inside files with find, cat and grep as a oneliner ...

2010-09-18 Thread Clive Standbridge
> > 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, contai