press
:%s/^M//
for ^M press Ctrl-v then enter
At 06:16 PM 7/30/2003, you wrote:
hi everyone:
is there a command-line utility that can get rid of ^M characters from text files written under Windows/DOS? i'm editing code in vi and those ^M's are a bit annoying. i found linefeed on freshmeat but its a gui that only converts one file at a time. i'm looking for a commandline utility that can take wildcards so i can convert a whole bunch of files (*.cxx and *.hxx files) with one command.
thanks in advance!
Joel Realubit
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
Regards,
Antonio Rabena LGA Telecom Pte Ltd Tel: +65 6892 2308 Fax: +65 6872 5668 Email: [EMAIL PROTECTED]
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
