From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29487 invoked from network); 4 Dec 2020 00:49:14 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 4 Dec 2020 00:49:14 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id C76669CA60; Fri, 4 Dec 2020 10:49:13 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id A40069CA51; Fri, 4 Dec 2020 10:49:02 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 008259CA51; Fri, 4 Dec 2020 10:49:00 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id E19E99CA4B for ; Fri, 4 Dec 2020 10:48:59 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 55E9135E1B5; Thu, 3 Dec 2020 16:48:59 -0800 (PST) Date: Thu, 3 Dec 2020 16:48:59 -0800 From: Larry McVoy To: Rob Pike Message-ID: <20201204004859.GZ19746@mcvoy.com> References: <20201203204301.GW19746@mcvoy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [TUHS] The UNIX Command Language (1976) X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" I should have done cat file file2 file3 ^ wc -l since the redirect works with only one file. On Fri, Dec 04, 2020 at 11:43:52AM +1100, Rob Pike wrote: > I've long been fascinated by the prevalence of > > cat file | process > > and think of it as a sort of triumph of the model. Pipes are more natural > than redirection as a human interface. > > -rob > > > On Fri, Dec 4, 2020 at 11:30 AM Dave Horsfall 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). > > > > And yes, "^" preceded "|" for reasons discussed later in this thread. > > > > -- Dave > > -- --- Larry McVoy lm at mcvoy.com http://www.mcvoy.com/lm