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 countin file - -l for
line countin file - -w for
words countin file - -m for
character countin file
If you would like to read from standard input, you can use like this
less test.txt | ./ccwc -l