Sha256: 9e3bc1828622da5131b6f26e0adb9e8755cf37340bf07ce48d693b691ec0b212

Contents?: true

Size: 1.21 KB

Versions: 11

Compression:

Stored size: 1.21 KB

Contents

= wc

wc gem is a very simple word counter. It takes a file in input and prints the words occurences.

== Usage

 $ bin/wc filename 
 
 This is the very basic wc usage. It reads filename and it prints out a sorted
 array for the word occurrences they have been found.

 $ bin/wc --json filename
 The same as the example above, except for the results that are printed in json notation.

 $bin/wc -w x filename
 It prints out only the first x words that appear with highest rate in filename

 $bin/wc --cloud filename
 It prints out the result using definition list HTML tag. This can be used to generate tag clouds

 $bin/wc -H filename
 It prints out the result excluding some very common English idioms such as ('and', 'of', 'the', ...)

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Paolo Perego. See LICENSE for details.

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wc-0.98.2 README.rdoc
wc-0.98.1 README.rdoc
wc-0.98.0 README.rdoc
wc-0.97.0 README.rdoc
wc-0.96.0 README.rdoc
wc-0.95.1 README.rdoc
wc-0.95.0 README.rdoc
wc-0.94.2 README.rdoc
wc-0.94.1 README.rdoc
wc-0.94.0 README.rdoc
wc-0.93.0 README.rdoc