cut off last lines of a document
- Reply: Ede Wolf : "Re: cut off last lines of a document"
- Reply: Michael Schuster : "Re: cut off last lines of a document"
- Reply: Andreas Kusalananda Kähäri : "Re: cut off last lines of a document"
- Reply: little.analyst892_a_aceecat.org: "Re: cut off last lines of a document"
- Reply: Tom Browder : "Re: cut off last lines of a document"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Sep 2023 08:43:46 UTC
Hello, From a file/output with an unknown amount of lines, I would like to filter out, or not display, the last 3 lines. Is there a way to archive this? For those also using linux, there is a "head -n -3" for this. That negative number option is not available on FreeBSD, but maybe there is an alterative way of doing this? Preferably /bin/sh compatible. Thanks Ede