If you want to save around a backup:perl -ni -e 'print unless $. == 1' <file>
The original is now in <file>.bak.perl -ni.bak -e 'print unless $. == 1' <file>
The general algorithm: How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file?
In reply to Re: Deleting the first line of a file
by btrott
in thread Deleting the first line of a file
by Kiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |