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
sed
You can use the --in-place (-i) switch:
--in-place
-i
sed -i '$d' filename
Source: man sed