![]() |
|
|
|
|
|||||||
| 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 |
| get last characters in ksh | meghana | Shell Programming and Scripting | 5 | 04-11-2008 01:11 PM |
| how to get first two characters from a word | sachin.gangadha | UNIX for Dummies Questions & Answers | 4 | 12-06-2007 01:57 PM |
| replacing characters | palmer18 | UNIX for Dummies Questions & Answers | 3 | 08-20-2007 06:58 AM |
| Add few characters | er_aparna | Shell Programming and Scripting | 7 | 08-17-2006 07:53 AM |
| characters ô ö à é è | Castelior | Shell Programming and Scripting | 1 | 04-19-2006 07:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Contol M (^M) characters
Is there a way to recursively find scripts/files with ^M characters embedded in them
Usually the case is when a file is saved on unix but in dos/windows format it ends up have ^M characters at the end of each line. Please let me know if there is a way to recursively find them. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
If you are, I would try: xtod unixfile > windowsfile Georgio |
|
#3
|
|||
|
|||
|
try command dos2unix <filename> or unix2dos<filename>
|
|
#4
|
|||
|
|||
|
grep -l ^M *
type: grep -l <ctrl-V><ctrl-M> * |
|||
| Google The UNIX and Linux Forums |