bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrectly sorted file with snow leopard sort


From: Bauke Jan Douma
Subject: Re: incorrectly sorted file with snow leopard sort
Date: Wed, 11 Nov 2009 18:55:14 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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'.

And 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]