Basic Go implementation of wc
tool.
$ go build .
$ ./cwc text.txt
Alternatively, you can choose to your own local file path
-c
: Used for counting number of bytes in the file-l
: Used for counting number of lines in the file-w
: Used for counting number of words in the file-m
: Used for counting Characters in the file
You may use -h
for help in the terminal itself.