Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2023 18:52:36 +0100 (CET)
From:      Sysadmin Lists <sysadmin.lists@mailfence.com>
To:        Freebsd Questions <freebsd-questions@FreeBSD.org>
Cc:        Polytropon <freebsd@edvax.de>
Subject:   Re: BSD-awk print() Behavior
Message-ID:  <77131479.37274.1677088356194@fidget.co-bxl>
In-Reply-To: <20230222165636.b00367e1.freebsd@edvax.de>
References:  <1600449078.170379.1676939080787@fidget.co-bxl> <Y/SZfSO1CdhIvVUD@harpo.local> <1653727721.225143.1676980394881@ichabod.co-bxl> <Y/Sxpa5H6bRYqiSI@harpo.local> <1200764932.226141.1676981164445@ichabod.co-bxl> <20230222165636.b00367e1.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> ----------------------------------------
> From: Polytropon <freebsd@edvax.de>
> Date: Feb 22, 2023, 7:56:36 AM
> To: Sysadmin Lists <sysadmin.lists@mailfence.com>
> Cc: Freebsd Questions <freebsd-questions@FreeBSD.org>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77131479.37274.1677088356194>