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 [EMAIL PROTECTED] Germany http://www.igd.fhg.de/~isachpaz --------------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aguiar Magalhaes Sent: Friday, May 05, 2006 3:12 PM To: freebsd-questions@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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"