GNU Coreutils File Processing: head and tail Examples

Last updated:

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

Output lines starting at line N until end-of-file

Use tail -n +N file.txt

$ cat multiline-file.txt 
1) line 1
2) line 2
3) line 3
4) line 4
5) line 5
$ tail -n +3 multiline-file.txt 
3) line 3
4) line 4
5) line 5

Reference

Dialogue & Discussion