Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Word Counter - Count words and characters in text' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Word Counter - Count words and characters in text
Authored by: timbos on Nov 30, '05 04:12:30PM
When I ran wc -wc *.doc on the whole book, it told me that there were 4.3million characters in the files. Word Counter returns a much more accurate figure of just under 1.0million. So explain to me what I'm doing wrong?
Probably nothing. Word generates a heap of text in the files that aren't displayed. Do you use the versioning facility, or track changes? They tend to make the filesizes huge. Also, if you open the docs up in a text editor, you'll probably find lots of extra stuff (like your address etc. all stored in there too!)

[ Reply to This | # ]
Word Counter - Count words and characters in text
Authored by: zojas on Dec 02, '05 04:10:06PM

.doc files are most assuredly not ascii, which is what wc is assuming.



[ Reply to This | # ]