Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions Subject: Re: Counting characters with unix utilities Message-ID: <1990Sep25.000516.10949@iwarp.intel.com> Date: 25 Sep 90 00:05:16 GMT References: <4002@umbc3.UMBC.EDU> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 43 In-Reply-To: mwm@raven.pa.dec.com (Mike (My Watch Has Windows) Meyer) In article , mwm@raven (Mike (My Watch Has Windows) Meyer) writes: | Why? Some people prefer the form | | cat file | utility args | | to | | utility args < file | | Why change from one to the other, except for efficiency? And even | then, there isn't enough difference to bother with for a command line. | For a script, you'd want to use the latter, though. But then the | difference is hidden from the user. Efficiency. Yow. Try using a slow machine sometime, where five people have bogged it down with extra "cat" processes. Besides, if you want similar forms, use tofile so that when I edit the command line, it stays clean. Just another shell hacker, -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/