![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Whi I'm getting control-M's | padpa | UNIX for Dummies Questions & Answers | 14 | 12-13-2007 03:18 AM |
| Fan control | Timmy66 | BSD | 1 | 08-02-2007 06:59 AM |
| Job control | bobk544 | Shell Programming and Scripting | 3 | 04-05-2007 05:31 AM |
| New to Control-M | oraclenerd | UNIX for Advanced & Expert Users | 5 | 05-18-2006 07:21 AM |
| Identifying and removing control characters in a file. | oracle8 | High Level Programming | 0 | 04-13-2004 03:08 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Removing control-Ms (^M)
Anyone know how to remove ^M's from a text file using sed command?
|
| Forum Sponsor | ||
|
|
|
|||
|
for anyone that wants to know i found a different piece of code to use
#********************************************************* # CHANGE LOG: # DATE PERSON COMMENT # ----------- ----------- ----------- # 28 FEB 2006 DARREN KANE CREATED #********************************************************* FILE=$1 /bin/tr -d '\015' < $FILE > t.$$ /bin/mv -f t.$$ $FILE |