A Go implementation of the command line tool wc
, which prints newline, word, and byte counts for each file
From inside the directory, run:
$ go build
$ ./ccwc --help
Alternately, you can view the man page:
$ man ./ccwc-man.0.gz
-c
, --bytes
print the byte count
-m
, --chars
print the character count
-l
, --lines
print the line count
-w
, --words
print the word count
--help
display options
--version
display version