Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.rvmrc
Gemfile
Gemfile.lock
PROBLEM
README.markdown
word_count.rb

README.markdown

word_count

This program will count the words in the provided text as further described in the file PROBLEM, and will print a word frequency table to standard output.

Usage: ./word_count.rb [file1 file2...]; if your OS doesn't understand the #! line, try ruby word_count.rb instead, as usual. If no filenames are supplied, standard input is read instead.

The script has been tested with Ruby 1.9.2, though it may work with other versions of Ruby. It has no external dependencies other than the standard library; the Gemfile in the repository is only needed for testing.

Something went wrong with that request. Please try again.