script code for end-line

Ernie Luzar luzar722 at gmail.com
Sat Sep 9 18:07:29 UTC 2017


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.





More information about the freebsd-questions mailing list