Eric Blake wrote on 11/04/2009 02:59 AM:
$ cat list-of-groups-greetings.txt | tr -d "\r" | sort
Useless use of cat.
tr -d "\r" < list-of-groups-greetings.txt | sort
Useless maybe, but then again maybe the user won some time
by it. I often wind up with constructs like this.
Many times, you do 'less /path/to/file', then right after you
may want to run sed or grep on it, in which case I usually
find it quicker to edit the previous command-line as little
as I can, and just attach the grep or sed or whatever-command
to it: 'less /path/to/file | grep regex'.
An many times --this may be hurtful ;-)-- I wind up doing 'cat
file' on too large a file, followed by a quick command-
line edit that gives me: 'cat file | less'.
Basically, I think I (my fingers?, my eyes?) have trouble
getting to the '<'. I'm not a touch typist by any means.
bjd