https://github.com/xnacly/xc
implementation of wc in various languages
https://github.com/xnacly/xc
c golang java python rust
Last synced: 5 months ago
JSON representation
implementation of wc in various languages
- Host: GitHub
- URL: https://github.com/xnacly/xc
- Owner: xNaCly
- License: gpl-3.0
- Created: 2022-03-16T13:21:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T12:26:55.000Z (about 4 years ago)
- Last Synced: 2023-03-04T02:07:55.860Z (over 3 years ago)
- Topics: c, golang, java, python, rust
- Language: Rust
- Homepage:
- Size: 62.5 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
> Please contribute new implementations or improve exisiting ones :)
# xc
implementation of the word counter shell utility (wc) in various languages
## Languages:
- [C](/C)
- [Go](/Go)
- [Java](/Java)
- [Python](/Python)
- [Rust](/Rust)
## Build Requirements:
All documentation in this repo assumes a \*nix operating system, create a virtual machine for the least hussle [here](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwitx8m6tLH3AhVGnKQKHQABA8YQwqsBegQIAxAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsB_5fqiysi4&usg=AOvVaw2NcyjuXi_VnBI2CAYt-b_W) `[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 `/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](https://en.wikipedia.org/wiki/Wc_(Unix)) `[Wikipedia]`
## [Contributing](/CONTRIBUTING.md)