wc-cli is a minimal version of wc
command. This project is developed as a hobby project, by referring to Jhon Cricket's Coding Challenge. I will be improving this project even more in the near future, stay tuned!.
Please watch the demo video to have a better understanding!
So you really are a developer,right? Because only monkeys use GUI,don't they?
- Clone this repository
git clone https://github.com/MahendraDani/wc-cli.git
- Change directory to projects directory
cd wc
- Compile the wc-cli
g++ main.cpp -o wc
- Run the wc-cli
./wc [option] <path-to-file>
Try running the following command to test the cli
./wc -c test.txt
If the optput is 342190
, the cli is working perfectly!
Each command in the wc-cli follows the following structure:
./wc [option] <path-to-file>
You can use any of the following Options
-c
: To get size of the file in bytes-l
: To get number of lines in the file-w
: To get number of words in the file-m
: To get number of characters in the file
Note: Please put the file inside the directory and provide its path from the root directory of this project in the command
Whenever you feel stuck in something, try running the help
command:
./wc help
If you feel the need to fix any bug or add a new feature, please create a issue in the repository and we will look into it, Thanks!