Counting the letters in a word

Paul Feitzinger paul.feitzinger at
Fri May 16 20:38:50 UTC 2014

On 05/16/2014 07:00 AM, Enes AVCU wrote:
> 9 come ...
> It will give such an output;
> 9 come 4 letters

If you're running osx or linux or something that has awk you could do
something like this in a terminal

awk < yourcorpus.txt > counts.txt \
  '{print $1, $2, length($2), "letters"}'

where yourcorpus.txt is a text file like the one you described above and
counts.txt is the output file to write the counts to.

Paul Feitzinger

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 646 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Chibolts mailing list