here's my take, since you want -p and not -n
perl -pi -e '$_="" if $i++' file
Update: oops! wrote it backwards. Thanx TZapper for pointing it out.
perl -pi -e '$_="" unless $i++' file
In reply to Re: perl -pie "???"
by Chady
in thread perl -pie "???"
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |