AshinSan/ZigWordCount
A simple wc clone written in Zig for learning purposes
This is a small project I made to learn Zig and get comfortable with systems programming.
zwc is a CLI utility written in Zig to count the number of lines, words, characters in a text file similar to the UNIX wc CLI.
zwc [FILE] [OPTION]
You can also pass other outputs instead of passing a file
echo hello world | zwc
-h, --help: Show help messages.-l, --list: Show only line count.-w, --word: Show only word count.-c, --char: Show only character count.-v, --verbose: Verbose Mode.--version: Shows current version.You can combine options:
zwc input.txt -lwc or zwc input.txt -cw --line etc.
zwc input.txt -l -c
zig build
MIT (See LICENSE file)