On Fri, Nov 07, 2003 at 10:38:43PM -0800, plug bert wrote:
> Can anyone reccommend a replacement for grep? i found
> out that even the latest version(2.5.1) has a problem
> with directories with several hundreds of files; i.e.
> i get an "argument list too long" error

The workaround there is, instead of:

grep PATTERN `ls`

do:

ls | xargs grep PATTERN

which will split the file list into multiple lists and run grep for
each.

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to