sed imprimir todas as linhas, exceto último

sed \$d	#For grepping all lines of a file except last line
Armandres