Log In | Not a Member? | Support | |
SYNTAX Count [file1] [file2]… [-c] [-l] DESCRIPTION The Count tool counts input lines and characters, writing the results to standard output. You can use the -c option for a character count only or the -l option for a line count only. INPUT Standard input, unless you specify input files with the [file1] [file2]… parameter. OUTPUT Standard output. The Count tool writes line and character counts to standard output. If you specify more than one input file, Count provides separate counts for each file, one per line, preceded by the filename. Line and character totals are written after the list. STATUS
Count can return the following status codes:
PARAMETERS [file1] [file2]… Specifies one or more text files as input. OPTIONS -c Writes only the character counts. -l Writes only the line counts. EXAMPLES The command line Count MakeFile.c Count.c displays line and character counts in the form MakeFile.c 43 981 Count.c 153 3327 Total 196 4303 By piping input from the Files command, this command line counts the total number of files and directories in the current directory. Files | Count -l This command line displays the number of lines selected (§) in the target window. Count -l §
|