Cat file

how to cat a file by ignoring first line and last line

sed '1d;$d' file