Am 07.03.2014 22:58, schrieb s...@missionstclare.com:
I have some text files from which I would like to remove the first line,
but only if it's blank. Any hints?  I tried a few things, but the
results haven't quite been satisfactory.


perl -pi -e '$_ = "" if ( $. == 1 && /^\n/);' filename

on command line would be my first shot.


Greetings,
Janek

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to