Re: BSD-awk print() Behavior
- In reply to: Polytropon : "Re: BSD-awk print() Behavior"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Feb 2023 17:52:36 UTC
> ---------------------------------------- > 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