Skip or remove the first line:
tail -n +2 file.txt
Skip the last line:
head -n -1 file.txt
Source:
https://unix.stackexchange.com/questions/55755/print-file-content-without-the-first-and-last-lines
Skip or remove the first line:
tail -n +2 file.txt
Skip the last line:
head -n -1 file.txt
Source:
https://unix.stackexchange.com/questions/55755/print-file-content-without-the-first-and-last-lines