Skip to content
/ xc Public

implementation of wc in various languages

License

Notifications You must be signed in to change notification settings

xNaCly/xc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please contribute new implementations or improve exisiting ones :)

xc

implementation of the word counter shell utility (wc) in various languages

Languages:

Build Requirements:

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.

Implementation details:

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]