[NTLUG:Discuss] Counting key presses in a file...

Richard Geoffrion ntlug at rain4us.net
Mon Aug 27 15:13:36 CDT 2007


I know that 'wc' can count words and lines, but how would one count.  
While 'a' would constitute ONE keystroke, 'A' would constitute two. 
(Shift + a).     Carriage returns would count as one while bolding text 
would constitute four keystrokes as one would need a CTRL-B to turn 
bolding on and another to turn bolding off.

How would one go about taking an openoffice document saved in the 
97/2000 'Word' format and converting it into something that can be 
parsed and counted?



More information about the Discuss mailing list