WordCountDoc.tioga
Copyright © 1985 by Xerox Corporation. All rights reserved.
Last edited by: R. Nix, January 12, 1984 12:50 pm
Swinehart, May 17, 1985 2:22:53 pm PDT
name WordCount:
description
wordcount fileNames
The wordcount program counts the number of lines and words in the indicated files, and prints a summary on its standard output. Great for giving yourself strokes when in paper-writing mode; even moderately useful for that purpose when in program-writing mode.
Extension courtesy of Rick Beach: running wordcount will also register a button (named WC) that counts the number of lines, words, and characters in the current selection.
As far as wordcount is concerned, a word is a sequence of alphanumeric characters. For example ``Mary-Claire'' counts as two words, ``KAL007'' counts as one word.
example
% wordcount *Doc.tioga!H
Lines Words  File
151  1666  []<>AlpineDoc.tioga!1
4  14  []<>BringOverDoc.tioga!1
5  15  []<>ChatDoc.tioga!1
41  421  []<>FontEditDoc.tioga!1
576  11112  []<>FSDoc.Tioga!1
5  15  []<>GrepDoc.tioga!19
461  7602  []<>InscriptDoc.tioga!1
131  1748  []<>InterpreterToolDoc.tioga!1
114  1969  []<>IOConversionDoc.tioga!1
519  6877  []<>IODoc.tioga!1
93  1187  []<>RegularExpressionDoc.tioga!29
253  4399  []<>RopeDoc.tioga!1
338  4506  []<>SafeStorageDoc.tioga!1
69  1642  []<>SafeStoragePrimerDoc.tioga!1
4  14  []<>SModelDoc.tioga!1
67  3036  []<>SpellingToolDoc.tioga!1
151  4804  []<>SpyDoc.tioga!1
427  10218  []<>SquirrelDoc.tioga!1
667  12731  []<>TiogaDoc.tioga!1
130  1130  []<>TIPDoc.tioga!1
110  3313  []<>TSetterDoc.Tioga!1
177  1624  []<>UserProfileDoc.tioga!1
4  14  []<>VerifyDFDoc.tioga!1
252  7072  []<>ViewerDoc.tioga!1
208  4731  []<>WalnutDoc.Tioga!1
464  8042  []<>WalnutOnAlpineDoc.tioga!1
5  15  []<>WCDoc.tioga!2
5426  99917   Total for 27 files.
%
bugs
WordCount ignores Tioga formatting information, so it'll ignore comment nodes too.
implementation
WordCountImpl.mesa in WordCount.df
contact
Dan Swinehart <Swinehart.pa>