summaryrefslogtreecommitdiff
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
parentbda3b2633935b3e217b17406ed0a379ffb97c2a1 (diff)
first
-rwxr-xr-xfirst-upper10
-rwxr-xr-xis-first-lower (renamed from first-lower)0
2 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
+
diff --git a/first-lower b/is-first-lower
index 1cddb8e..1cddb8e 100755
--- a/first-lower
+++ b/is-first-lower