I saw the sed
examples, but no matter how I write that it won't delete my first line. Actually, I did more tests and it won't delete my first line either, so for sure I'm doing something wrong:
sed '1d' filename
or for last line
sed '$d' file name
I want the changes to take place in the same file, and don't want another output file. So please, what's the correct way to remove the last line in my file?