Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: emv@math.lsa.umich.edu (Edward Vielmetti) Newsgroups: comp.unix.questions Subject: Re: Counting characters with unix utilities Message-ID: Date: 24 Sep 90 21:54:37 GMT References: <4002@umbc3.UMBC.EDU> Sender: usenet@math.lsa.umich.edu Followup-To: comp.unix.questions Organization: University of Michigan Math Dept., Ann Arbor MI. Lines: 19 In-Reply-To: ted@nmsu.edu's message of 24 Sep 90 15:00:53 GMT 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 tr -cd 'A' < file | wc -c 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 there's no extra work or thinking involved. grep ^Subject file | tr -cd 'A' | wc -c --Ed Edward Vielmetti, U of Michigan math dept moderator, comp.archives "No funding, no fixing."