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

Re: Delete every n line

by b10m (Vicar)
on May 09, 2008 at 14:50 UTC ( #685687=note: print w/ replies, xml ) Need Help??


in reply to Delete every n line

TIMTOWTDI: Sed is probably the fastest way here ;-)

sed '0~25d' filename

Others will probably show fance Perl golf examples (hopefully).

--
b10m


Comment on Re: Delete every n line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-07-04 13:59 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 (60 votes), past polls