Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 13:28:26 +0700
From:      "Kisanak" <kisanak@cbn.net.id>
To:        <questions@FreeBSD.org>
Subject:   RE: ^M
Message-ID:  <NEBBLICCKKPKJABLGBLMAEDECHAA.kisanak@cbn.net.id>
In-Reply-To: <002301c0028a$1975b220$1200a8c0@matt>

next in thread | previous in thread | raw e-mail | index | archive | help
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,<CTL-V><CTL-M>,,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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBLICCKKPKJABLGBLMAEDECHAA.kisanak>