SED - Delete - Delete last N lines of a file
sed
-e
:a
-e
'$d;N;2,10ba'
-e
'P;D'
# method 1
sed
-n
-e
:a
-e
'1,10!{P;N;D;};N;ba'
# method 2