removing carriage returns or other caret-letter combinations
In files transfered from windows/dos to unix, you'll often see M at the end of each newline. This is because the unix linebreak is just \n while the dos linebreak is \n\r. Occasionally you'll also get file accidentally named with a H in them. You can get rid of these either with sed or vi find/replace, but you have to figure out how to type it first. Here's how:
For ^<LETTER>, type Ctrl-V Ctrl-<LETTER>. So For the carriage return, you'd type Ctrl-V Ctrl-M. This works both in vi and on the commandline.
-- DetlevLengsfeld 2008-01-25 08:01:30
| /Allerlei /Meine 10 Tipps zum Umgang mit der Bash /Textersetzungen über mehrere Dateien /Zeichen aus Dokumenten entfernen |
Linux/Daily Usage Tipps/Zeichen aus Dokumenten entfernen (last modified 2008-11-04 07:00:19)