This project is a solution for Build your own wc tool build for my personal educational purposes
wc is a command line tool, read the original specification for more
- Implemented
-l, --lines Number of lines
-w, --words Number of words
-c, --bytes Nymber of bytes
-m, --chars Number of characters
-h, --help Usage
- Not implemented
--files0-from=file
--total=when
--max-line-length
Usage: ./wc-tool [OPTIONS]... [FILE]...
If no [OPTIONS] specified then -l, -w, -c = true
If no [FILE] specified then input = stdin
[OPTIONS]:
-l, --lines Number of lines
-w, --words Number of words
-c, --bytes Nymber of bytes
-m, --chars Number of characters
-h, --help Usage
- Clone the repo
git clone https://github.com/Leonardpepa/wc-tool
- Build
go build
- run on windows
wc-tool.exe [OPTIONS] [FILE]
- run on linux
./wc-tool [OPTIONS] [FILE]
- run tests
go test