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.
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 [/code]
Be sure to make backups first.