Word counter

wc - print newline, word, and byte counts for given file. Clone of *nix wc command written in Crystal.

Installation

Usage

# show char, word, line count
$ wc ~/start-up.sh
1090	82	42

# show only char count
$ wc ~/start-up.sh -c
1090

# show only word count
$ wc ~/start-up.sh -w
82

# show only word count use
$ wc ~/start-up.sh -l
42