Rob Dixon wrote:
> 
> Try:
> 
>     perl -p -i -e "redo if /^\s*$/" file.ext
> 
> which will remove all lines consisting only of whitespace.

redo will go back to the top of the loop without evaluating the while
expression so the first blank line will cause an infinite loop.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to