Remove ^M characters using vi
To remove all "^M" characters from a file, open it in vi and use this command::%s/^M//g
The "^M" in the above line has to be typed in by pressing CTRL+v and then CTRL+M.
TextSnippets > vi >
Post code snippets. Sort by tags, people, people and tags, etc..
Top Associated Tags
1 | vi |
Top Users
47 | nothingless |
26 | jason |
15 | rsimplicio |
11 | ubernostrum |
10 | soul |
9 | jacques |
6 | kjell |
6 | dean |
5 | rubymatt |
4 | unquiet |
4 | nickstenning |
4 | dasil003 |
3 | jimray |
3 | johnt |
3 | christopher |
3 | ryan |
3 | tim |
3 | ludo |
3 | bcrow |
3 | vixx |
3 | Q2Developers |
3 | Sencer |
2 | cnladd |
2 | miraclebaby |
2 | aaron |
2 | yetsirah |
2 | Nis |
2 | julik |
2 | jblomberg |
2 | jtnt |
2 | hil |
2 | ubs |
2 | marten |
2 | cch |
2 | mamash |
2 | danb |
1 | Skybly |
1 | joeldg |
1 | matteov |
1 | jarkko |
1 | sam |
1 | iolaire |
1 | froehle |
1 | mrmachine |
1 | sid |
1 | orgoed |
1 | will |
1 | willcodeforfoo |
1 | jamie |
1 | lypanov |
? Earlier | 1 items total | Later ? |
:%s/^M//g
? Earlier | 1 items total | Later ? |
Developed by Peter Cooper and powered by Ruby On Rails