- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove ^M from large Unix text file globall...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 12:36 AM
тАО03-29-2007 12:36 AM
How to remove ^M from large Unix text file globally?
Can you help? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 12:44 AM
тАО03-29-2007 12:44 AM
Re: How to remove ^M from large Unix text file globally?
Why do you have them embedded too?
You can also use vi:
:%s/^vCR$//
Where that is control-V then a CR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 12:45 AM
тАО03-29-2007 12:45 AM
Re: How to remove ^M from large Unix text file globally?
you hold control key and type v m, you will see ^M getting typed only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 12:49 AM
тАО03-29-2007 12:49 AM
Re: How to remove ^M from large Unix text file globally?
Your "g" on the end will change the embedded ^Ms too. You need that "$" anchor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 04:31 AM
тАО03-29-2007 04:31 AM
Re: How to remove ^M from large Unix text file globally?
Thanks for fast response. I thought that I was the only one replying to the question and closed the thread.
I did not mean to be uncourteous to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 04:42 AM
тАО03-29-2007 04:42 AM
Re: How to remove ^M from large Unix text file globally?
You could hit the 're-open this threat' button, assign a few points to acknoledge the effort and solution. Hit 'submit' for those points, and then re-close.
Regards,
Hein
[0 points for this please]