perl -i -ne 'print if $.-1' file perl -i -pe 'goto LINE if $. == 1' file perl -i -pe '$_=$+if!$if++' file
--
John.
In reply to Re: perl -pie "???"
by jmcnamara
in thread perl -pie "???"
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |