Gnu tail

From wikinotes
Revision as of 00:38, 19 July 2021 by Will (talk | contribs) (Created page with "Obtain last N lines from a file (or watch it as it updates). <syntaxhighlight lang="bash"> cat foo.txt | tail -n+2 # tail all lines, starting with line 2 (skipping first lin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Obtain last N lines from a file (or watch it as it updates).

cat foo.txt | tail -n+2  # tail all lines, starting with line 2 (skipping first line)