Date: Wed, 3 Apr 2002 17:05:28 -0600 From: "Adam Wood" <woodfucius@attbi.com> To: "'ann kok'" <annkok2001@yahoo.com>, <questions@FreeBSD.ORG> Subject: RE: special charaters (return key) Message-ID: <003101c1db64$0f1f8120$0100a8c0@wood> In-Reply-To: <20020403204928.7E77237B494@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> how do type the special character? ^M (return key) > I want to remove it on the file You could use tr to remove the ^M characters like this: cat file | tr -d '\015' or this to make a new file: tr -d '\015' < file.txt > newfile.txt This works also: tr -d '\r' < file.txt > newfile.txt Hope that helps. Adam 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?003101c1db64$0f1f8120$0100a8c0>