awk - print all fields except for last field

How do I print all the fields of a record except for the $(NF) field?

This one helps...?

awk '{$NF=""}1' inputifile
awk '{$(NF--)=""; print}' inputfile

Jean-Pierre.

sed '$d' inputfile

The awk solutions above leave a field separator after each line.
You can avoid that with something like:

awk 'sub(FS $NF,x)' file

This removes the last line.