Need command or script to print all lines from 2nd position to last but one position

hi guys,
i want command or script to display the content of file from 2nd position to last but one position of a file

abcdefghdasdasdsd
 123,345,678,345,323
  434,656,656,656,656
   678,878,878,989,545
  4565656667,65656

i want to display the same above file without first and last lines(the file lnes may differ)

 123,345,678,345,323
434,656,656,656,656
678,878,878,989,545
 

try

awk '{A[++c] = $0} END { for ( i = 2; i <c; i++ ) { print A }}' filename

Or

sed '1d;$d' file