sed '1d' file Delete the 1st line
sed '$d' file Delete the last line
sed '2,4d' file Delete a range of lines, from 2nd line till 4th line
Delete lines other than the specified range sed '2,4!d' file
sed '1d;$d' file Delete the first line AND the last line of a file
....