My solution of the coding challenge's wc
cli tool. wc cli tool challenge
You need to install go version1.21.x
go test -v
go build
Sample command
./ccwc -l sample.txt
You can use these flags on your desire.
- -c for
bytes count
in file - -l for
line count
in file - -w for
words count
in file - -m for
character count
in file
If you would like to read from standard input, you can use like this
less test.txt | ./ccwc -l