in reply to Deleting the first line of a file
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?
|
|---|