in reply to Grep Issues
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. :-)
|
|---|