Delete first and last line or record from file using sed
Use Command Separator
In sed, you can separate commands using a semicolon. For example:
sed '1d; $d' /path/to/file
You could use ;
sed '1d; $d' file
In sed, you can separate commands using a semicolon. For example:
sed '1d; $d' /path/to/file
You could use ;
sed '1d; $d' file