Re: cut off last lines of a document

From: Ede Wolf <listac_at_nebelschwaden.de>
Date: Sun, 03 Sep 2023 13:28:35 UTC
Am 03.09.23 um 15:06 schrieb Polytropon:
> On Sun, 3 Sep 2023 10:05:46 +0200, Ede Wolf wrote:
>> Am 02.09.23 um 05:37 schrieb lain.:
>>> On 2023年09月01日 11:37, the silly Ede Wolf claimed to have said:
>>>> as it again is specific to FreeBSD, so if there is a
>>>> more universal solution, that would be preferred. Even though this of course
>>>> is a FreeBSD mailing list.
>>>
>>> I should point out that FreeBSD coreutils are not GNU coreutils, so
>>> there are going to be differences.
>>> And there are 1000s of different versions of coreutils available,
>>> because they're so easy to re-create, and each one of them work
>>> differently.
>>>
>>
>> I am aware of this, that is why I am so thankfull for the sed and awk
>> solutions provided here. Those are a little bit more handy than a perl
>> script :)
>>
>> Of course there are differences between those tools as well, but so far
>> those seem to have a common playground - the awk as well as sed examples
>>    so far are working for gnu as well as [Free|Net]BSD. Not even required
>> to add the --posix flag to gnu sed.
> 
> If I may:
> 
> Everything depends.
> 
> If your goal is maximum portability, you absolutely need to
> stay away from GNU extensions. So if your script needs to run
> on various Linux and UNIX (!) systems, only using the most
> common tools in their most simple versions is the way to go.

Maye there is a misunderstanding on my side, but that is exactly what 
I've asked for and what kindly has been provided to me?