Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: remove single blank lines?

by BrowserUk (Patriarch)
on Dec 08, 2003 at 23:33 UTC ( [id://313307]=note: print w/replies, xml ) Need Help??


in reply to remove single blank lines?

As a one-liner

perl -lne"length or ++$x and next; $x==1 or printf $/ x $x; $x=0; prin +t"

Caveat: Different quotes for different folks:)


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
Wanted!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-23 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found