sed to quickly delete lines with specific position as
sed '1d' sed '5d'
But, what if I want to delete the last line of the file and I don't know the count of lines (I know I can get that using
wc and several other tricks).
Currently, using a workaround with
wc to do so. Any quick twists here?