sed tout sauf le dernier

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