From owner-freebsd-questions Wed Apr 3 17:22: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wonkity.com (wonkity.com [63.93.4.4]) by hub.freebsd.org (Postfix) with ESMTP id 4131637B405 for ; Wed, 3 Apr 2002 17:22:05 -0800 (PST) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id g341M1uF076833 for ; Wed, 3 Apr 2002 18:22:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id g341M0uN076830; Wed, 3 Apr 2002 18:22:00 -0700 (MST)?g (envelope-from wblock@wonkity.com) Date: Wed, 3 Apr 2002 18:22:00 -0700 (MST) From: Warren Block To: ann kok Cc: questions@FreeBSD.ORG Subject: Re: special charaters (return key) In-Reply-To: <20020403204049.63482.qmail@web20104.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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