From owner-freebsd-questions Wed Feb 26 9: 1:49 2003 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 431BF37B401 for ; Wed, 26 Feb 2003 09:01:48 -0800 (PST) Received: from apollo.laserfence.net (apollo.laserfence.net [196.44.69.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEB6243FDD for ; Wed, 26 Feb 2003 09:01:44 -0800 (PST) (envelope-from will@unfoldings.net) Received: from localhost ([127.0.0.1]) by apollo.laserfence.net with esmtp (Exim 4.10) id 18o4w3-0002a5-00; Wed, 26 Feb 2003 19:01:35 +0200 Received: from prometheus-p0.datel.laserfence.net ([192.168.255.1] helo=prometheus.home.laserfence.net) by apollo.laserfence.net with esmtp (Exim 4.10) id 18o4vq-0002Zx-00; Wed, 26 Feb 2003 19:01:23 +0200 Received: from phoenix.home.laserfence.net ([192.168.0.2]) by prometheus.home.laserfence.net with esmtp (Exim 4.10) id 18o4vl-0007I6-00; Wed, 26 Feb 2003 19:01:17 +0200 Received: from will by phoenix.home.laserfence.net with local (Exim 4.10) id 18o4vk-0005PR-00; Wed, 26 Feb 2003 19:01:16 +0200 From: Willie Viljoen To: Tijl Coosemans , freebsd-questions@freebsd.org Subject: Re: cat Date: Wed, 26 Feb 2003 19:01:15 +0200 User-Agent: KMail/1.5 References: <20030226175613.5e61f45e.tijl@ulyssis.org> In-Reply-To: <20030226175613.5e61f45e.tijl@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302261901.15799.will@unfoldings.net> X-Spam-Score: (/) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *18o4vq-0002Zx-00*HuT4Fd1XhbE* X-Virus-Scanned: by AMaViS snapshot-20020422 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 Wednesday 26 February 2003 18:56, someone, possibly Tijl Coosemans, typed: > I want to remove CRs from text files so what I did is this: > > cat filename | tr -d '\r' > filename > > However, I often end up with an empty file. Just out of > interest, somebody who knows why that is? Not a clue, but a tool to do this safely called dosunix is available in ports :) -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message