Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^6: Slicing the output of a commandby BrowserUk (Patriarch) |
on Jul 10, 2015 at 11:17 UTC ( [id://1134117]=note: print w/replies, xml ) | Need Help?? |
You're correct, however, marioroy's point holds. When head has read its 4 lines it closes the pipe and effectively prevents cat (or type or copy etc.) from reading further. (That doesn't stop it from be a Useless use of cat though.)
In Section
Seekers of Perl Wisdom
|
|