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

Re: Group every 50 rows

by pvaldes (Chaplain)
on Jul 18, 2012 at 14:46 UTC ( #982456=note: print w/ replies, xml ) Need Help??


in reply to Group every 50 rows

Very similar to a problem posted a few days ago.

perl -ne 'print if $. <= 50' test.txt > first_50.txt perl -ne 'print if $. > 50 && $. <= 100' test.txt > 51_to_100.txt perl -ne 'print if $. > 100 && $. <= 150' test.txt > 101_to_150.txt perl -ne 'print if $. > 150 && $. <= 200' test.txt > mylittlepony.txt


Comment on Re: Group every 50 rows
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-08-30 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls