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
In Section
Seekers of Perl Wisdom