Bauke Jan Douma <bjdo...@xs4all.nl> writes:

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

$ < list-of-groups-greetings.txt tr -d "\r" | sort

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Reply via email to