* Deleting ^M with vi
@ 1997-02-21 9:32 Garry Optland
0 siblings, 0 replies; only message in thread
From: Garry Optland @ 1997-02-21 9:32 UTC (permalink / raw)
To: tru64-unix-managers
Is there an easy way to delete carriage returns (^M) in vi? I am editing
some html files created on a PC, and they annoy me :-)
I tried :%s/^M//g but I get a substitute pattern match failed message,
probably because I'm entering shift-6 and shift-m as two characters. I
also tried \r, but that deletes all r's from the file.
Regards,
Garry.
--------------------------------------------------------------------
Garry Optland Unix-Internet-CGI-Security
Email: garry@pp.nsw.gov.au phone: +61 2 9268 6160
Pacific Power, Park & Elizabeth Streets, Sydney, NSW 2001 Australia
--------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-02-21 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-21 9:32 Deleting ^M with vi Garry Optland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox