From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 16:35:36 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1EA137B401 for ; Wed, 16 Apr 2003 16:35:35 -0700 (PDT) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5A843F85 for ; Wed, 16 Apr 2003 16:35:35 -0700 (PDT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.9/8.12.9) with ESMTP id h3GNZUJI023657; Wed, 16 Apr 2003 17:35:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.9/8.12.9/Submit) with ESMTP id h3GNZRbw023654; Wed, 16 Apr 2003 17:35:29 -0600 (MDT) Date: Wed, 16 Apr 2003 17:35:27 -0600 (MDT) From: Warren Block To: Christopher Rosado In-Reply-To: <200304152334.26957.chris@topher.gintera.net> Message-ID: <20030416173147.Y23561@wonkity.com> References: <5.2.0.9.2.20030415085340.01bae4a0@mail.servplex.com> <200304152334.26957.chris@topher.gintera.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: dos2unix??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 23:35:36 -0000 On Tue, 15 Apr 2003, Christopher Rosado wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tuesday 15 April 2003 04:46 pm, Warren Block wrote: > > > Um... ^M would mean an M at the start of a line. This should be > > > > s/\r//g; > > Try pressing CTRL-V then CTRL-M in vi ... the result is ^M as a control > character. I use s/^M//g quite frequently. I try to avoid unprintable characters in programs because, well, they're unprintable. \r is less typing, doesn't screw up when you print it to paper, and won't be confused with a beginning-of-line anchor and a capital M. -Warren Block * Rapid City, South Dakota USA