Date: Wed, 3 Apr 2002 18:22:00 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: ann kok <annkok2001@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: special charaters (return key) Message-ID: <Pine.BSF.4.21.0204031813590.76705-100000@wonkity.com> In-Reply-To: <20020403204049.63482.qmail@web20104.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Apr 2002, ann kok wrote: > how do type the special charater? ^M (return key) > I want to remove it on the file > > sed 's/^M//g' crt1.txt Seems like last time I wanted to do this, the BSD sed didn't understand that a \r should be a return. Perl does, though: perl -pi -e 's/\r//g' crt1.txt -Warren Block * Rapid City, South Dakota USA 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?Pine.BSF.4.21.0204031813590.76705-100000>