A wrapper on wc
shell command. This command permits to execute wc
recursively with a more flexible argument parser.
gem install wcr
Example of Project Architecture:
wcr/
|--bin/
|--wcr
|--lib/
|--wcr/
|--arguments_parser.rb
|--command.rb
|--wrc.rb
...
|--wcr.gemspec
Output:
$ wcr ./lib
38 88 818 ./lib/wcr/arguments_parser.rb
13 33 343 ./lib/wcr/command.rb
0 2 21 ./lib/wcr.rb
51 123 1182 total
The options parser is particulary flexible:
$ wcr -l ./lib -w ./bin
38 88 ./lib/wcr/arguments_parser.rb
13 33 ./lib/wcr/command.rb
0 2 ./lib/wcr.rb
7 13 ./bin/wcr
58 136 total
$
Use -h
options to display hidden files.
- This program is written using the ruby
stdlib
without any dependencies. - It's a wrapper of
wc
shell command. So, feel free to checkman wc
for more information.
Before reporting a problem check the issue list.
More information here.
Feel free to follow me on Twitter.
Thanks! :)