in reply to perl -pie "???"
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl -pie "???"
by TZapper (Acolyte) on Aug 18, 2004 at 10:53 UTC |