summaryrefslogtreecommitdiff
path: root/sample/occur2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/occur2.rb')
-rw-r--r--sample/occur2.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/occur2.rb b/sample/occur2.rb
index 6e05137..899294e 100644
--- a/sample/occur2.rb
+++ b/sample/occur2.rb
@@ -1,3 +1,5 @@
+# word occurrence listing
+# usege: ruby occur2.rb file..
freq = {}
while gets()
for word in $_.split(/\W+/)