Counting characters with unix utilities
Ted Dunning
ted at nmsu.edu
Tue Sep 25 01:00:53 AEST 1990
i didn't want to answer this one, but
In article <EMV.90Sep23181658 at picasso.math.lsa.umich.edu> emv at math.lsa.umich.edu (Edward Vielmetti) writes:
In article <4002 at umbc3.UMBC.EDU> rouben at 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 at nmsu.edu +---------+
| In this |
| style |
|__10/6___|
More information about the Comp.unix.questions
mailing list