Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 03:28:20 -0600
From:      "Franklin Pierce" <franklin_pierce@operamail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: cat
Message-ID:  <20030227092820.18872.qmail@operamail.com>

next in thread | raw e-mail | index | archive | help
----- Original Message -----
From: Shantanu Mahajan <shantanoo+fbsd@ieee.org>
Date: Thu, 27 Feb 2003 11:05:27 +0530
To: Tijl Coosemans <tijl@ulyssis.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030227092820.18872.qmail>