From owner-freebsd-questions Wed Jun 6 7:34:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gelemna.org (cc466188-a.pinev1.in.home.com [24.17.49.208]) by hub.freebsd.org (Postfix) with ESMTP id 1A1F237B406 for ; Wed, 6 Jun 2001 07:34:17 -0700 (PDT) (envelope-from croyle@gelemna.org) Received: (from croyle@localhost) by gelemna.org (8.11.3/8.11.3) id f56EXcQ17103; Wed, 6 Jun 2001 09:33:38 -0500 (EST) (envelope-from croyle@gelemna.org) To: James Housley Cc: Damien Tougas , Laura Gioia , questions@FreeBSD.ORG, G D McKee Subject: Re: ^M References: <96950000.991836351@01.dhcp.hck.carroll.com> <015501c0ee92$71ca67a0$0a00a8c0@gdmckee.local> <3B1E3B22.4E56D186@thehousleys.net> From: Don Croyle Date: 06 Jun 2001 09:33:38 -0500 Organization: Minimal at best In-Reply-To: James Housley's message of "Wed, 06 Jun 2001 10:16:02 -0400" Message-ID: <86vgm9ekzh.fsf@emerson.gelemna.org> Lines: 26 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 James Housley writes: > G D McKee wrote: > > > > Hi > > > > On think topic does anyone know who to get the ^M's back again so as M$ > > notepad can read the files correctly. > > > > Wordpad will do fine. > > In vi (^-ctrl) > > :%s/$/^V^M/ If this is something you need to do frequently, perl -pi -e 's/\r//' filename (to remove the ^Ms) perl -pi -e 's/\n/\r\n/' filename (to put them back) have the advantage of being something that can be turned into an alias or shell script. -- I've always wanted to be a dilettante, but I've never quite been ready to make the commitment. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message