Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://982456]
help
Chatterbox?
[stevieb]: did my pull request challenge today, Locale::gettext. Weird layout for a dist, and I have no idea how to use it, but it's always nice when you can force someone else's work be use strict; and use warnings; compliant :)
[stevieb]: ahem... s/no idea how to use it/didn't read enough as to what it's used for/

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-01-24 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (199 votes). Check out past polls.