From nobody Wed Feb 22 16:34:31 2023 X-Original-To: freebsd-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 4PMMFM4y81z3tB9x for ; Wed, 22 Feb 2023 16:34:47 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from mailout.qeng-ho.org (mailout.qeng-ho.org [217.155.128.244]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMMFM2TC6z42N9 for ; Wed, 22 Feb 2023 16:34:47 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Authentication-Results: mx1.freebsd.org; none Received: from [IPV6:2a02:8010:64c9:1::2] (unknown [IPv6:2a02:8010:64c9:1::2]) by mailout.qeng-ho.org (Postfix) with ESMTP id 2A0BB506CE; Wed, 22 Feb 2023 16:34:32 +0000 (GMT) Message-ID: <34ea696f-6df5-adc4-6182-596b41826833@qeng-ho.org> Date: Wed, 22 Feb 2023 16:34:31 +0000 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: BSD-awk print() Behavior Content-Language: en-GB To: Polytropon , Sysadmin Lists Cc: Freebsd Questions References: <1600449078.170379.1676939080787@fidget.co-bxl> <1653727721.225143.1676980394881@ichabod.co-bxl> <1200764932.226141.1676981164445@ichabod.co-bxl> <20230222165636.b00367e1.freebsd@edvax.de> From: Arthur Chance In-Reply-To: <20230222165636.b00367e1.freebsd@edvax.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PMMFM2TC6z42N9 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 22/02/2023 15:56, Polytropon wrote: > On Tue, 21 Feb 2023 13:06:04 +0100 (CET), Sysadmin Lists wrote: >> (Now that I think of it, the carriage-returns are inserted by the web browser >> of course.) > > If you encounter more unneeded CRs, using ... | tr -d '\n' | ... > in your preprocessing step is very easy _and_ helpful. :-) > I think you meant tr -d '\r' -- We build our computer systems the way we build our cities; over time, without a plan, on top of ruins. — Ellen Ullman