From owner-freebsd-questions Thu Feb 27 1:28:31 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 CFEFD37B401 for ; Thu, 27 Feb 2003 01:28:29 -0800 (PST) Received: from spf1.us.outblaze.com (205-158-62-139.outblaze.com [205.158.62.139]) by mx1.FreeBSD.org (Postfix) with SMTP id 1212F43FA3 for ; Thu, 27 Feb 2003 01:28:29 -0800 (PST) (envelope-from franklin_pierce@operamail.com) Received: (qmail 29442 invoked from network); 27 Feb 2003 09:28:28 -0000 Received: from unknown (205.158.62.146) by spf1.us.outblaze.com with QMQP; 27 Feb 2003 09:28:28 -0000 Received: (qmail 10361 invoked from network); 27 Feb 2003 09:25:50 -0000 Received: from unknown (HELO ws5-2.us4.outblaze.com) (205.158.62.133) by 205-158-62-146.outblaze.com with SMTP; 27 Feb 2003 09:25:50 -0000 Received: (qmail 18873 invoked by uid 1001); 27 Feb 2003 09:28:20 -0000 Message-ID: <20030227092820.18872.qmail@operamail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [65.28.11.36] by ws5-3.us4.outblaze.com with http for franklin_pierce@operamail.com; Thu, 27 Feb 2003 03:28:20 -0600 From: "Franklin Pierce" To: freebsd-questions@freebsd.org Date: Thu, 27 Feb 2003 03:28:20 -0600 Subject: Re: cat X-Originating-Ip: 65.28.11.36 X-Originating-Server: ws5-3.us4.outblaze.com 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 ----- Original Message ----- From: Shantanu Mahajan Date: Thu, 27 Feb 2003 11:05:27 +0530 To: Tijl Coosemans Subject: Re: cat > +++ Tijl Coosemans [freebsd] [26-02-03 17:56 +0100]: > | I want to remove CRs from text files so what I did is this: > | > | cat filename | tr -d '\r' > filename Meow. cat is short for concatenate, that is, to combine sequantially. if you are not combining, if you are, in fact, just pumping a file through a command (as "tr -d '\r'") try "<", it saves a processor cycle or twenty and it's syntactically correct, AND ------->>> ----->>> i mean, why not? cat "filename" && grep "freaky deaky" >> quack-quack.txt && page "filename" >> bark-bark.txt && tr -d '\r' < filename > neue-filename && cd /usr/src && make buildworld && rm -r / > | > | However, I often end up with an empty file. Just out of > | interest, somebody who knows why that is? > | > | ------------------------------ > col -bx < filenam > filenam.new > or that, yes. love, Franklin Pierce -- _______________________________________________ http://www.operamail.com Now with OperaMail Premium for only US$29.99/yr Powered by Outblaze To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message