Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Slicing the output of a command

by hippo (Archbishop)
on Jul 09, 2015 at 16:14 UTC ( [id://1133981]=note: print w/replies, xml ) Need Help??


in reply to Slicing the output of a command

Your experiment is a good one and your interpretation of the results is sound. So, if you only want the first few lines either use head instead of cat, or better yet just open the file within perl instead of shelling out and read a few lines that way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2026-04-10 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.