Substitute command on vi
Ilias Sachpazidis
isachpaz at igd.fhg.de
Mon May 8 13:56:56 UTC 2006
I use the following:
:.,$s/^M//g
For ^M, you have to press Ctrl-V and then <Enter>
Best regards,
Ilias
---------------------------------------------------
Fraunhofer IGD
Department Cognitive Computing & Medical Imaging
Ilias Sachpazidis phone:+49/(0)/6151/155 507
Fraunhoferstr. 5 fax :+49/(0)/6151/155 480
D-64283 Darmstadt Ilias.Sachpazidis at igd.fhg.de
Germany http://www.igd.fhg.de/~isachpaz
---------------------------------------------------
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Aguiar Magalhaes
Sent: Friday, May 05, 2006 3:12 PM
To: freebsd-questions at freebsd.org
Subject: Substitute command on vi
Hi list,
I need to substitute a lot of characters ^M (ctrl+M)
at the end of each line in my file.
The command :%s/^M//g insn't have success.
How can i do it ?
Thanks,
Aguiar
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e
anti-spam realmente eficaz.
http://br.info.mail.yahoo.com/
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list