Note that this is a one-liner to be run as is from the command-line (adjust your input file-name).perl -i.old -ne 'my $l = <>; print($l), next if $.==2; print "$_$l" un +less eof' input.txt
In reply to Re^3: Deleting first and last lines of a text file
by morgon
in thread Deleting first and last TWO(2) lines of a text file
by vsmeruga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |