summaryrefslogtreecommitdiff
path: root/first-upper
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2018-04-11 13:15:03 +0000
committerPatrick Simianer <p@simianer.de>2018-04-11 13:15:03 +0000
commit3562d3042ee2b95855e976870221a35a60001834 (patch)
tree48f0a8b239e77870199e4d0166ea3aabd5077f6a /first-upper
parentbda3b2633935b3e217b17406ed0a379ffb97c2a1 (diff)
first
Diffstat (limited to 'first-upper')
-rwxr-xr-xfirst-upper10
1 files changed, 10 insertions, 0 deletions
diff --git a/first-upper b/first-upper
new file mode 100755
index 0000000..610e62c
--- /dev/null
+++ b/first-upper
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+
+require 'zipf'
+
+while line = STDIN.gets
+ line.strip!
+ line[0] = line[0].upcase
+ puts line
+end
+