summaryrefslogtreecommitdiff
path: root/toks
diff options
context:
space:
mode:
Diffstat (limited to 'toks')
-rwxr-xr-xtoks10
1 files changed, 10 insertions, 0 deletions
diff --git a/toks b/toks
new file mode 100755
index 0000000..ed40dbb
--- /dev/null
+++ b/toks
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby
+
+STDIN.set_encoding 'utf-8'
+STDOUT.set_encoding 'utf-8'
+
+
+while line = STDIN.gets
+ line.strip.split(/\s/).each { |i| puts i }
+end
+