| 84708 packages online |
|
|
| util/cli/WordCount.lha | | | No screenshot available |
|
WordCount counts lines, words, and characters similar to the Unix wc command.
Format:
WordCount [[FROM] pattern...] [LINES] [WORDS] [BYTES|CHARS]
Template:
FROM/M,LINES/S,WORDS/S,BYTES=CHARS/S
The WordCount command counts lines, words, and characters in the named
files. If no files are specified, WordCount reads from the default input,
making it possible to use it with pipes.
When multiple files are specified on the command line, their names will
be printed along with the counts.
WordCount also keeps a total count for all named files.
The switches LINES, WORDS, and CHARS may be used to specify that a
subset of lines, words, and characters are to be reported.
WordCount has a broad definition of a word. It considers a word to be any
string of characters delimited by spaces, tabs, or new-lines.
Using no switches is the same as using all three.
Examples:
1> wordcount #?.doc
1> list SYS: nohead quick all files | wordcount lines
Binary, source code, and documentation included.
Under 2-clause BSD License.
|
Contents of util/cli/WordCount.lhaPERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown] 260 628 41.4% -lh5- 811a Jan 20 02:01 WordCount.info
[unknown] 164 260 63.1% -lh5- 67a5 Jan 14 15:22 WordCount/source/smakefile
[unknown] 2322 5569 41.7% -lh5- 2393 Jan 20 03:58 WordCount/source/WordCount.c
[unknown] 743 952 78.0% -lh5- b7b6 Jan 20 03:58 WordCount/WordCount
[unknown] 488 936 52.1% -lh5- 9f2b Jan 19 23:33 WordCount/WordCount.doc
[unknown] 264 501 52.7% -lh5- ff05 Jan 20 02:02 WordCount/WordCount.doc.info
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 6 files 4241 8846 47.9% Jan 21 03:59
|
|
|
|
Aminet © 1992-2024 Urban
Müller and
the Aminet team.
Aminet contact address: <aminetaminet net> |