From owner-freebsd-questions Wed Feb 26 8:56:19 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 1A33737B401 for ; Wed, 26 Feb 2003 08:56:18 -0800 (PST) Received: from 10-4-5-217.kotnet.org (bones2.kulnet.kuleuven.ac.be [134.58.253.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E25243FB1 for ; Wed, 26 Feb 2003 08:56:16 -0800 (PST) (envelope-from tijl@ulyssis.org) Received: from localhost (localhost [127.0.0.1]) by 10-4-5-217.kotnet.org (8.12.6/8.12.6) with SMTP id h1QGuE4m061462 for ; Wed, 26 Feb 2003 17:56:14 +0100 (CET) (envelope-from tijl@ulyssis.org) Date: Wed, 26 Feb 2003 17:56:13 +0100 From: Tijl Coosemans To: freebsd-questions@freebsd.org Subject: cat Message-Id: <20030226175613.5e61f45e.tijl@ulyssis.org> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message