Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!mips!wyse!bob From: bob@wyse.wyse.com (Bob McGowen x4312 dept208) Newsgroups: comp.unix.questions Subject: Re: Counting characters with unix utilities Message-ID: <2972@wyse.wyse.com> Date: 25 Sep 90 02:00:13 GMT References: <4002@umbc3.UMBC.EDU> Sender: news@wyse.wyse.com Reply-To: bob@wyse.UUCP (Bob McGowen x4312 dept208) Organization: Wyse Technology Lines: 22 In article emv@math.lsa.umich.edu (Edward Vielmetti) writes: >In article ted@nmsu.edu (Ted Dunning) writes: > > cat file | tr -cd 'A' | wc -c > > ed must have been kidding when he left the cat in place, instead of .... > >nope. I cat files all the time. That way when I go back to edit this command >to work on the output of a command instead of the contents of a file ... Also, a script using: cat $* | tr -cd 'A' | wc -c can use command line args OR read its standard input. Bob McGowan (standard disclaimer, these are my own ...) Product Support, Wyse Technology, San Jose, CA ..!uunet!wyse!bob bob@wyse.com