Sunday, April 17, 2005

Solution for "File argument list too long" message with grep

If get "File argument list too long" message with grep:

ls -1 > filelist
awk '{ printf("grep 1a1 %s\n", $1) }' filelist > script.sh
chmod +x script.sh
./script.sh

No comments: