A simplified version of one of the most valuabe Unix command line tools wc written in Go/Golang with executables for windows, osx and linux.
ccwc just like the original wc is a command line tool that allows you to count the number of lines, words, bytes, and characters in the file specified by the File parameter.
Find the corresponding executable according to your operating system platform here:
https://github.com/emanuelquerty/ccwc/releases/tag/v0.0.3
ccwc [OPTION] [FILE]
If OPTION is not specified, it prints the line, word, and byte count in this same order of the file specified by the FILE parameter.
ccwc test.txt
ccwc supports the following Flags as of this time:
| Flag | Description |
|---|---|
| -c | print the byte count |
| -m | print the character count |
| -w | print the word count |
| -l | print the newline count |
| --help | display help info and exit |
ccwc -c test.txt
The above command prints the number of bytes in test.txt
Note: More features will be included as they are ready. Stay tuned!
Copyright (c) 2023 Emanuel Inacio
Licensed under MIT License