Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

Converting ^M characters to Unix new line
https://forum.ivorde.com/converting-m-characters-to-unix-new-line-t105.html
Page 1 of 1

Author:  debuser [ Sun Jul 18, 2010 11:20 am ]
Post subject:  Converting ^M characters to Unix new line

Needed this when working with html/xml files that contain ^M characters and in VI they show up quite ugly.

Code:
$ tr '\015' '\n' < file_in > file_out


Be sure to make backups first.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/