Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^6: Slicing the output of a command

by BrowserUk (Patriarch)
on Jul 10, 2015 at 11:17 UTC ( [id://1134117]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Slicing the output of a command
in thread Slicing the output of a command

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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134117]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found