[TUHS] The UNIX Command Language (1976)

George Michaelson ggm at algebras.org
Fri Dec 4 11:17:45 AEST 2020


ggm at ggm-802382 ~ %  h 1-|wc -l; h 1-|grep '<' | wc -l; h 1-|grep '>' |
wc -l; h 1-|grep '|'|wc -l
    1005
      34
      14
      91
ggm at ggm-802382 ~ %

On Fri, Dec 4, 2020 at 11:11 AM Bakul Shah <bakul at iitbombay.org> wrote:
>
> 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