summaryrefslogtreecommitdiff
path: root/Tools/capitalize
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/capitalize')
-rwxr-xr-xTools/capitalize5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/capitalize b/Tools/capitalize
new file mode 100755
index 000000000..d49c088c9
--- /dev/null
+++ b/Tools/capitalize
@@ -0,0 +1,5 @@
+#!/bin/sh
+# usage: capitalize word
+# write word to stdout w/ first character upcased
+first_char=`echo $1 | sed 's/^\(.\).*/\1/' | tr a-z A-Z`
+echo ${first_char}`echo $1 | sed 's/^.//'`