Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Delete every n line

by mr_mischief (Monsignor)
on May 09, 2008 at 15:05 UTC ( [id://685694]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne 'next if 0 == $. % 25; print' filename
    
  2. or download this
    #!/usr/local/bin/perl --
    use strict;
    use warnings;
    ...
        next if 0 == $. % $remove_lines_modulo;
        print;
    }
    
  3. or download this
    #!/usr/local/bin/perl --
    use strict;
    ...
        next if 0 == $. % $remove_lines_modulo;
        print;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found