Am 07.03.2014 22:58, schrieb [email protected]:
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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
