C warning that I can't seem to track down
Chris F.A. Johnson
cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Wed Aug 9 18:06:22 UTC 2006
On Wed, 9 Aug 2006, Lennart Sorensen wrote:
> On Wed, Aug 09, 2006 at 11:06:48AM -0400, Chris F.A. Johnson wrote:
>> Even without the -r option, you don't need Python:
>>
>> find /usr/include -type f -print0 | xargs -0 grep PATTERN /dev/null
>
> Whatever does the /dev/null do?
It forces grep to print the file name if there is only one name on
the command line.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list