BASH, using head:
head
$ head --lines=-1 filename
Same for Mac:
expr "$a" : '\(.*\)'
The newline is required!
Probably the shortest way:
sed '$d' filename