Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Writing many lines to a file

by pvaldes (Chaplain)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://982083]
help
Chatterbox?
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-09-21 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (254 votes). Check out past polls.

    Notices?