Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Sep 2017 14:07:27 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        edgar <edgar@pettijohn-web.com>, Yuri Pankov <yuripv@gmx.com>,  "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: script code for end-line
Message-ID:  <59B42DDF.8000603@gmail.com>
In-Reply-To: <20170909183320.7899bcc0.freebsd@edvax.de>
References:  <59B332A3.1000205@gmail.com>	<20170909030257.d2718c00.freebsd@edvax.de>	<c8715d2d-cb1f-592b-7541-a556fa5645a7@gmx.com>	<2b79276f-aa2a-47d1-810a-4594bda0beb1@localhost> <20170909183320.7899bcc0.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote:
> On Sat, 9 Sep 2017 11:14:02 -0500, edgar wrote:
>> I think some example input may be helpful. It sounds like dos2unix
>> may be useful. However, sed should be able to help as well.
> 
> Yes. In case "search & replace" is a way to go, tools like recode,
> iconv, sed or tr are a comfortable way to deal with ^Ms.
> 

Reading this turned the light on in my head. I remembered using the tr 
command before. It took care of the problem in a different way.

Thank you Polytropon for the mind tickler, and thanks to all the others 
who replied as it was a learning experience.






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