Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marnen/word_count
https://github.com/marnen/word_count
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/marnen/word_count
- Owner: marnen
- Created: 2011-12-13T05:24:02.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-14T04:32:44.000Z (about 13 years ago)
- Last Synced: 2024-12-10T05:42:22.692Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# 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.