This is why another poster suggested xargs. xargs reads arguments from standard input, and executes a command with arguments. It chunks the input and repeats the command as required, to avoid going over any command-line-length limits of the shell.
Instead of just (xargs --help), try (man xargs) for some examples (search for EXAMPLES) and details.
--
[ e d @ h a l l e y . c c ]
In reply to Re: Re: Re: grep or perl
by halley
in thread grep or perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |