[TUHS] The UNIX Command Language (1976)
Bakul Shah
bakul at iitbombay.org
Fri Dec 4 11:10:51 AEST 2020
On Dec 3, 2020, at 4:29 PM, Dave Horsfall <dave at horsfall.org> wrote:
>
> On Thu, 3 Dec 2020, Larry McVoy wrote:
>
>> Wasn't there a version that was
>>
>> cat whatever ^ wc -l
>
> Sort of pipe-related, but one thing that really gets my goat is the inefficient redundancy in "cat file | process" when "process < file" will suffice (and I'll bet that I'm not alone).
Checking command history in zsh:
$ h 1-|wc -l; h 1-|grep '<' | wc -l; h 1-|grep '>' | wc -l; h 1-|grep '|'|wc -l
10009
125
225
878
So it appears I used < ~1%, > ~2% and | ~9% of the command lines!
I bet others will something similar.
More information about the TUHS
mailing list