Sample Header Ad - 728x90

How to obtain inverse behavior for `tail` and `head`?

75 votes
10 answers
68099 views
Is there a way to head/tail a document and get the reverse output; because you don't know how many lines there are in a document? I.e. I just want to get everything but the first 2 lines of foo.txt to append to another document.
Asked by chrisl-921fb74d (8803 rep)
Aug 16, 2011, 12:23 AM
Last activity: Dec 8, 2022, 01:43 PM