diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/system/doc/count.hlp | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/system/doc/count.hlp')
-rw-r--r-- | pkg/system/doc/count.hlp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkg/system/doc/count.hlp b/pkg/system/doc/count.hlp new file mode 100644 index 00000000..09601019 --- /dev/null +++ b/pkg/system/doc/count.hlp @@ -0,0 +1,44 @@ +.help count Nov84 system +.ih +NAME +count -- determine number of lines, words and characters in a file +.ih +USAGE +count files +.ih +PARAMETERS +.ls files +A template specifying the files to be examined. +.le +.ih +DESCRIPTION +For each file, count determines the number of lines, words, and +characters in the file. A word is defined as a sequence of characters +delimited by one or more blanks or tabs, or by the end of a line. +If \fIcount\fR is run on more than one file, each output line is identified +by the file name, and a final output line gives the total number +of lines, words, and characters in all files. +.ih +EXAMPLES + +1. Count the number of lines, words and characters in all files in the +current directory with the extensions ".x" and ".h". + + cl> count *.[xh] + +2. Count the number of .x files in the current directory. + + cl> dir *.x op=1 | count + +3. Count the number of \fIset\fR environment definitions. + + cl> set | count + +4. Count the number of references to the READ function in all .x files in +the current directory. + + cl> match "read#(" *.x | count +.ih +SEE ALSO +directory +.endhelp |