ccwc



Summary
ccwc is a simplified clone of wc written in Go.
Usage
First, build the CLI application.
# `git clone` and `cd` to the ccwc repository folder first
make build_cli
Then use the c, l, w and/or m flags to count number of bytes, lines, words, and characters in test.txt.
./dist/ccwc -c test.txt # Count bytes
./dist/ccwc -l test.txt # Count lines
./dist/ccwc -w test.txt # Count words
./dist/ccwc -m test.txt # Count characters
Piping in from standard input is also supported.
cat test.txt | ./dist/ccwc -l