From nobody Mon Sep 04 16:14:08 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfYcN0Vtpz4rQw1 for ; Mon, 4 Sep 2023 16:14:28 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfYcM0MGHz4DvN for ; Mon, 4 Sep 2023 16:14:27 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=YylbCUVP; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4RfYcK2nJTzDqX6 for ; Mon, 4 Sep 2023 16:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1693844065; bh=e/Qda3RGlCHQ6HfTiK55Y44MqAEFkYNXeDeCyqMuVu4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=YylbCUVPOYDeUfe0IhBHHcnVMKSNXqs9D+rCyYvB48yRgQzO+1XNWEeZwemZ23qQX DA8qKokoLJl9aqOr9zct0ittTvX42h3S3p69oeftLvz21icQXeEMLBgqZ6VNn/ss0y YEjcSY00z/n4CO+3mDku1cXobzP77ABNKLDkng1g= X-Riseup-User-ID: 718E72971085EA26F9A8D650ABDC904028A269262576BD4A0B8C808BB93BF858 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4RfYcJ58nDzJmvS for ; Mon, 4 Sep 2023 16:14:24 +0000 (UTC) Message-ID: <001c5d370cb70930b82588c47a6fa7217c7a2f79.camel@riseup.net> Subject: Re: cut off last lines of a document From: Ralf Mardorf To: questions@freebsd.org Date: Mon, 04 Sep 2023 18:14:08 +0200 In-Reply-To: <9195f2126712560684ab72fea6f434b791afc333.camel@riseup.net> References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> <9195f2126712560684ab72fea6f434b791afc333.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.16 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.960]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from]; RWL_MAILSPIKE_GOOD(-0.10)[198.252.153.129:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; BLOCKLISTDE_FAIL(0.00)[198.252.153.129:server fail]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[riseup.net:+]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4RfYcM0MGHz4DvN On Mon, 2023-09-04 at 17:35 +0200, Ralf Mardorf wrote: > Let alone that I don't understand how to use > your shell function without rewriting it. Oops! My bad! "On Fri, 2023-09-01 at 10:43 +0200, Ede Wolf wrote: > For those also using linux, there is a "head -n -3" for this.