Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!granite.pa.dec.com!mwm From: mwm@raven.pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.unix.questions Subject: Re: Counting characters with unix utilities Message-ID: Date: 24 Sep 90 18:38:55 GMT References: <4002@umbc3.UMBC.EDU> Sender: news@wrl.dec.com (News) Followup-To: comp.unix.questions Organization: Missionaria Phonibalonica Lines: 25 In-Reply-To: ted@nmsu.edu's message of 24 Sep 90 15:00:53 GMT ed must have been kidding when he left the cat in place, instead of tr -cd 'A' < file | wc -c 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.