Counting the letters in a word

Paul Feitzinger paul.feitzinger at gmail.com
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
2048R/0xD84C25FF6148862E

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 646 bytes
Desc: OpenPGP digital signature
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20140516/4e577fc4/attachment-0001.sig>


More information about the Chibolts mailing list