Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 browsing the Monastery: (7)
As of 2015-08-01 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls