Xref: utzoo comp.unix.questions:25714 comp.unix.shell:281 comp.lang.perl:2400 Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!usc!rutgers!cmcl2!lanl!nmsu!opus!ted From: ted@nmsu.edu (Ted Dunning) Newsgroups: comp.unix.questions,comp.unix.shell,comp.lang.perl Subject: Re: Counting characters with unix utilities Message-ID: Date: 24 Sep 90 15:00:53 GMT References: <4002@umbc3.UMBC.EDU> Sender: news@NMSU.Edu Followup-To: comp.unix.questions Organization: NMSU Computer Science Lines: 27 In-reply-to: emv@math.lsa.umich.edu's message of 23 Sep 90 23:16:58 GMT i didn't want to answer this one, but In article emv@math.lsa.umich.edu (Edward Vielmetti) writes: In article <4002@umbc3.UMBC.EDU> rouben@math9.math.umbc.edu writes: ... cat file | tr -c 'A' '' | wc -c ... ... cat file | tr -cd 'A' | wc -c ed must have been kidding when he left the cat in place, instead of tr -cd 'A' < file | wc -c -- ted@nmsu.edu +---------+ | In this | | style | |__10/6___|