Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Fri Dec 01, 2023 1:49 pm


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

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

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

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.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Converting ^M characters to Unix new line"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Vi/Vim - Show line numbers in vi or vim

LaR3

0

2075

Thu Oct 01, 2009 5:45 am

LaR3 View the latest post

There are no new unread posts for this topic. Openssl s_client command line: connect and diagnose an https server

LaR3

0

5687

Wed Aug 26, 2009 3:18 am

LaR3 View the latest post

There are no new unread posts for this topic. Reloading /etc/profile - how to reload Unix /etc/profile

mandrei99

0

35601

Tue Jan 20, 2015 5:29 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO