Holgado, Pedro wrote:
do search and replace in vi.
:%s/{CNTRL-V}{CNTRL-M}//
Pedro Holgado III U-ITS Server Analyst Universal Studios Work: 818-777-4089 Cell: 818-974-5363 [EMAIL PROTECTED]
-----Original Message-----
From: Sherwin Daganato [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:21 AM
To: Philippine Linux Users Group Mailing List
Subject: Re: [plug] utility for getting rid of pesky DOS carriage returns
On Wed, Jul 30, 2003 at 06:16:18PM +0800, Joel Realubit 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.
In your vi session, execute
:set fileformat=unix
If you want to this in the command-line, see following links:
http://marc.free.net.ph:80/message/20020704.102417.4e0ffadf.html http://marc.free.net.ph:80/message/20020704.103008.9b104004.html
-- 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
