November 1998
Beginner
368 pages
7h 58m
English
One of UNIX's handiest capabilities lets you count files and their contents. For example, you can count the number of files in a directory, or you can count the number of words or lines in a file. You do this counting with the wc command, as shown in Code Listing 6.1.
To count words using wc:
wc -w honeydo
To count lines with wc:
wc -l honeydo
Tip
You can ...
Read now
Unlock full access