Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://685687]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2017-07-27 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (402 votes). Check out past polls.