find a file

Al Black al-black at telus.net
Tue Aug 7 05:19:13 UTC 2007


On Mon, 2007-06-08 at 11:28 -0700, Smoot Carl-Mitchell wrote:
> On Mon, 2007-08-06 at 22:42 +1000, Karl Auer wrote:
> > On Mon, 2007-08-06 at 08:21 -0300, Allan Valeriano wrote:
> > 
> 
> >    find . -name "*.txt" -exec grep help {} \; -print
> 
> Slightly easier syntax is:
> 
> find . -name "*.txt" -exec grep -H help {} \;

Nice.  Norman, for what its worth, I like to pipe the results of these
sort of searches to less or dump them into a file for taking a look at.
Man less, or use > "filename".

al







More information about the ubuntu-users mailing list