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

Re: Re: remove blank lines with regex

by Joost (Canon)
on May 21, 2002 at 13:35 UTC ( #168119=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -wnl -e 'print $_ unless /^$/' infile >outfile
    
  2. or download this
    perldoc perlrun
    perldoc perlre
    
  3. or download this
    -- 
    Joost       downtime n. The period during which a system
                is error-free and immune from user input.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-05-27 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (97 votes). Check out past polls.

    Notices?