From: "W.B.Hill" Date: 2005-12-27T23:46:45+09:00 Subject: Re: Found a neat trick for doing recursive one-liners On Tue, 27 Dec 2005, Pat Maddox wrote: > Or you can use the tools designed for finding stuff :) > > find . -name "*.txt" | xargs grep Hello > > That version will work for all files. You can play with find to match > any file you want. find . -regex '.*\.txt' -print0 | xargs -0 -n1000 grep Hello -print0 and -0 to avoid trouble with spaces and other metagubbins. -n1000 for a bit of a speedup -regex to show you can ;-)