The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
delete non printable characters from file alokjyotibal UNIX for Dummies Questions & Answers 2 08-23-2008 07:42 AM
Delete specific characters masquerer AIX 4 04-21-2008 05:00 AM
How to delete a file with special characters yveslagace UNIX for Dummies Questions & Answers 5 08-22-2007 11:42 AM
how to insert and delete characters in the middle of file ivancheung High Level Programming 7 10-11-2004 03:08 AM
Replace string and delete extra characters slaubhan Shell Programming and Scripting 2 08-28-2003 05:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
hyennah hyennah is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 14
how to delete M-^M characters from a file

I am receiving a file with 'M-^M' characters...how do I get rid of these characters.
I tried tr -d '\015' and sed '/^M//g', but they didnot work.

Appreciate if someone can help me with this
  #2 (permalink)  
Old 11-20-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Wink

Take a look at this thread
^M character

Also, search this forum for the dos2unix utility.
DOS uses CR (carriage return) and LF (line feed) between rows, while
Unix uses LF only.
Sponsored Links
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0