From owner-freebsd-questions Wed Aug 9 23:24: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from willamette.cbn.net.id (willamette.cbn.net.id [202.158.3.6]) by hub.freebsd.org (Postfix) with SMTP id BE24F37B595 for ; Wed, 9 Aug 2000 23:23:55 -0700 (PDT) (envelope-from kisanak@cbn.net.id) Received: (qmail 62460 invoked by uid 1016); 10 Aug 2000 13:25:58 +0700 Received: from unknown (HELO navajo) (202.158.50.85) by willamette.cbn.net.id with SMTP; 10 Aug 2000 13:25:58 +0700 From: "Kisanak" To: Subject: RE: ^M Date: Thu, 10 Aug 2000 13:28:26 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <002301c0028a$1975b220$1200a8c0@matt> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes, I did ftping it in ASCII mode, but still doesn't work. Finally, it works with tr -d "\r" < test.txt > test2.txt but it never works with: load the file with vi. execute the following command... :1,$s,,,g It seems that there's no visual feature while editing using vi in freebsd, but in linux I can use visual or visual block features. any idea?. Thanks for any helps. regards, Kisanak. -----Original Message----- From: Matthew Emmerton [mailto:matt@gsicomp.on.ca] If you're FTPing the files, be sure to transfer them in ASCII mode. This will enforce the proper end-of-line translation between DOS and UNIX. Otherwise, use the following command to strip ^Ms: tr -d "\r" < test.txt > test2.txt where "test.txt" is the file with the "^M" characters, and test2.txt is a new file without them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message