Mailing List Archive

Support open source code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep resistance

On Sun, 5 Nov 2000, Viktor Pavlenko wrote:

> >>>>> On Sat, 4 Nov 2000 11:03:25 -0600 (CST), Tod McQuillin <> said:
>     TM> find . -type f -print0 | xargs -0 grep -n -C STRING
> Or, if you (like me :) can never remember how to use xargs:
> grep -n -C STRING `find . -type f`

Sure, but the original poster's problem was 'command line too long', so
this doesn't help in that case.  When there are more files involved than
can fit in an argv, xargs is pretty much a necessity.
Tod McQuillin

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links