OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.common versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/sh.common 1.21 -> 1.22

--- sh.common    2003/08/13 14:20:34     1.21
+++ sh.common    2003/12/13 21:23:55     1.22
@@ -174,6 +174,16 @@
     chmod 600 $tmpfile
 fi
 
+#   utility function: map string to lower case
+util_lower () {
+    echo "$1" | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'
+}
+
+#   utility function: map string to upper case
+util_upper () {
+    echo "$1" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+}
+
 #   cleanup procedure
 shtool_exit () {
     rc="$1"

CVSTrac 2.0.1