From nobody Wed Feb 22 17:52:36 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 4PMNzF6Rn0z3tF1p for ; Wed, 22 Feb 2023 17:52:41 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Received: from wilbur.contactoffice.com (wilbur.contactoffice.com [212.3.242.68]) (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 4PMNzF3PPzz4FRM for ; Wed, 22 Feb 2023 17:52:41 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Authentication-Results: mx1.freebsd.org; none Received: from fidget.co-bxl (fidget.co-bxl [10.2.0.33]) by wilbur.contactoffice.com (Postfix) with ESMTP id C823614BF; Wed, 22 Feb 2023 18:52:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1677088357; s=20210208-e7xh; d=mailfence.com; i=sysadmin.lists@mailfence.com; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1116; bh=T8kkur65qhJTbupkyYRqXvu0BjvGzJ6MNBxZkbChrjQ=; b=bBNEx+GN6PEfMmisUzLGpbRuI7rGV8s+AYwUAzqEUbTsB5vrRcO4bnGi4IE9dwzH DefYNwX737lGiTtdmmqtJC+ERcRn9IwsrOuG5YfSUPCZ/F0Fn1PuKaRmOaxtyzrv5S3 dnoajD2s/j/aSdmmtPd0oCbx8TzxAuoIqOKy0MC7ndhqFnVG1ugvaMtnBTg7C31fuF7 RbSSmKdT/ejEV2bzJkwz+0fjZkjmAnKw848HHmZSetIinYUykyF7xm5SCc7wchtSRQm r/sxOlSe9W/D68OviUeJFMQ9GBAB7omi1Rq/YBdPyI6o7IbH+MevdbyA2SyybSKnFzC PSZrItSNnA== Date: Wed, 22 Feb 2023 18:52:36 +0100 (CET) From: Sysadmin Lists To: Freebsd Questions Cc: Polytropon Message-ID: <77131479.37274.1677088356194@fidget.co-bxl> In-Reply-To: <20230222165636.b00367e1.freebsd@edvax.de> References: <1600449078.170379.1676939080787@fidget.co-bxl> <1653727721.225143.1676980394881@ichabod.co-bxl> <1200764932.226141.1676981164445@ichabod.co-bxl> <20230222165636.b00367e1.freebsd@edvax.de> Subject: Re: BSD-awk print() Behavior 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:312482426 X-Rspamd-Queue-Id: 4PMNzF3PPzz4FRM X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:10753, ipnet:212.3.242.64/26, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > ---------------------------------------- > From: Polytropon > Date: Feb 22, 2023, 7:56:36 AM > To: Sysadmin Lists > Cc: Freebsd Questions > Subject: Re: BSD-awk print() Behavior > > > 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. :-) > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > The `strings' program worked, too. $ awk '{ print $0 " abc " }' <(strings file_1) <(strings file_2) https://github.com/ abc https://github.com/ abc https://github.com/ abc https://github.com/ abc That's what got me to search for the `cat' flag to display chars vim was hiding. Linux has a program called dos2unix, but that's a bit overkill. -- Sent with https://mailfence.com Secure and private email