GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
COUNT(1L) Schily´s USER COMMANDS COUNT(1L)

count - counts items in a file

count [ options ] file1 ... filen

Count reads all of the specified files and produces one line of output for each input file: the number of the characters, the number of 'words', and the number of lines in the specified files. 'Words' is an arbitrary term in reference to programs, because they tend to have a lot of punctuation. For text files a word is a sequence of characters separated by white space.

If more than one file is given, a grand total is also printed. If no filenames are given, count reads from standard input. Any combination of options works; the default is (-c -w -l -llen -t).

All options except tab= and -llen can be abbreviated to their first letter. The option -llen can be abbreviated with -ll.

Counts characters based on bytes.
Counts multi byte characters.
Counts words.
Counts lines.
Counts maximum line length.
Set the width of a tab to tab width for counting maximum line length.
Use stat(2) system call to get the character count of a file. This is much faster but cannot count anything but characters.
Grand totals of several files.
Prints a short summary of the count options and exists.
Prints the count version number string and exists.

None currently known.

Mail bugs and suggestions to schilytools@mlists.in-berlin.de or open a ticket at https://codeberg.org/schilytools/schilytools/issues

The mailing list archive may be found at:


https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de

Joerg Schilling and the schilytools project authors.

The source code for count is included in the schilytools project and may be retrieved from the schilytools project at Codeberg at:

https://codeberg.org/schilytools/schilytools/

The download directory is:

https://codeberg.org/schilytools/schilytools/releases

2022/07/17 Joerg Schilling

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.