[Ilugc] grep error
Muthukumar
ramana_muthu at yahoo.co.in
Mon Mar 14 10:23:49 IST 2005
>
> grep <pattern> *
>
> It throws the following error:
> ksh: /usr/bin/grep: arg list too long
>
> can any one tell me what is the reason ? and how to solve this issue ?
> NOTE: The directory contains some 15000 file
This is the problem. grep is having ability to do pattern search for few number of files.
Try as,
find <dir> -type f | xargs grep <pattern>
HTH.
Thanks,
-Muthukumar.
More information about the ilugc
mailing list