Please contribute new implementations or improve exisiting ones :)
implementation of the word counter shell utility (wc) in various languages
All documentation in this repo assumes a *nix operating system, create a virtual machine for the least hussle here [Youtube]
.
Most build scripts are written using make
and a Makefile
and well documented.
Dependencies and more information on compiling / running implementations can be found in <lang>/Readme
.
If something isn't clear, feel free to create an Issue with your Question.
The wc shell utility counts words, lines and characters by default for the specified file. The following features must be implemented:
- support cli arguments:
-m
/--chars
: print only char count-l
/--lines
: print only line count-w
/--words
: print only word count-v
/--version
: print the version and exit-h
/--help
: print the usage screen and exit
- support multiple files, add a total sum after reading all files
wc [Wikipedia]