Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Writing many lines to a file

by pvaldes (Hermit)
on Jul 16, 2012 at 21:42 UTC ( #982083=note: print w/ replies, xml ) Need Help??


in reply to Writing many lines to a file

perl -ne 'print if $. <= 100' infile.txt > outfile.txt


Comment on Re: Writing many lines to a file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-04-23 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (556 votes), past polls