I'd say the head command exits as soon as it's written its one line. After that, grep is writing to a pipe with no reader (because head has exited) -- hence the "broken pipe".
Why not write the whole thing in Perl? You don't need no damn grep and head if you've got perl. :-)
In reply to Re: Grep Issues
by eyepopslikeamosquito
in thread Grep Issues
by jpk236
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |