The Workers' Compensation Program processes claims and monitors the payment of benefits to injured private-sector employees in the District of Columbia. Disputes between claimants and employers (or their insurance carriers) are mediated and employers are monitored to ensure compliance with insurance coverage requirements. The program administers the special/second injury fund, which provides.
Developer(s) | AT&T Bell Laboratories |
---|---|
Initial release | November 3, 1971; 47 years ago |
Operating system | Unix and Unix-like, MSX-DOS |
Type | Command |
License | coreutils: GNU GPL v3 |
wc (short for word count) is a command in Unix and Unix-likeoperating systems.
The program reads either standard input or a list of files and generates one or more of the following statistics: newline count, word count, and byte count. If a list of files is provided, both individual file and total statistics follow.
Example[edit]
Sample execution of wc:
The first column is the count of newlines, meaning that the text file foo has 40 newlines while bar has 2294 newlines- resulting in a total of 2334 newlines. The second column indicates the number of words in each text file showing that there are 149 words in foo and 16638 words in bar – giving a total of 16787 words. The last column indicates the number of characters in each text file, meaning that the file foo has 947 characters while bar has 97724 characters – 98671 characters all in all.
Newer versions of
wc
can differentiate between byte and character count. This difference arises with Unicode which includes multi-byte characters. The desired behaviour is selected with the -c
or -m
switch.History[edit]
GNU
wc
used to be part of the GNU textutils package; it is now part of GNU coreutils. The version of wc
bundled in GNU coreutils was written by Paul Rubin and David MacKenzie.[1] A wc
command is also part of ASCII's MSX-DOS2 Tools for MSX-DOS version 2.[2]![Svetylko Svetylko](/uploads/1/2/5/7/125730141/706410726.jpg)
Usage[edit]
![Svtylko do wcvb Svtylko do wcvb](/uploads/1/2/5/7/125730141/617530626.jpg)
wc -l <filename>
prints the line count (note that if the last line does not have n, it will not be counted)wc -c <filename>
prints the byte countwc -m <filename>
prints the character countwc -L <filename>
prints the length of longest line (GNU extension)wc -w <filename>
prints the word count
See also[edit]
References[edit]
- ^https://linux.die.net/man/1/wc
- ^MSX-DOS2 Tools User's Manual by ASCII Corporation
External links[edit]
wc
– Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group- wc(1) - Original Unix First Edition manual page for wc.
wc(1)
– Linux User Commands Manual- The wc Command by The Linux Information Project (LINFO)
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Wc_(Unix)&oldid=902118018'