ignoring lines in a file

HI,
command to cat a readable file by ignoring the first line and last line

or command to cat a readable file by ignoring the lines with delimiter

Please advise on this.

Please post your input file and desired output

cat tmp.txt 
1
2
3
4
5
6
7
8
9
sed -e '1d' -e '$d' tmp.txt 
2
3
4
5
6
7
8