From 3562d3042ee2b95855e976870221a35a60001834 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 11 Apr 2018 13:15:03 +0000 Subject: first --- first-lower | 11 ----------- first-upper | 10 ++++++++++ is-first-lower | 11 +++++++++++ 3 files changed, 21 insertions(+), 11 deletions(-) delete mode 100755 first-lower create mode 100755 first-upper create mode 100755 is-first-lower diff --git a/first-lower b/first-lower deleted file mode 100755 index 1cddb8e..0000000 --- a/first-lower +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env ruby - -require 'zipf' - -while line = STDIN.gets - line.strip! - if line && line!='' && line[0].downcase? - puts line - end -end - 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/is-first-lower b/is-first-lower new file mode 100755 index 0000000..1cddb8e --- /dev/null +++ b/is-first-lower @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby + +require 'zipf' + +while line = STDIN.gets + line.strip! + if line && line!='' && line[0].downcase? + puts line + end +end + -- cgit v1.2.3