Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Created January 8, 2014 20:48
Show Gist options
  • Save coderofsalvation/8324360 to your computer and use it in GitHub Desktop.
Save coderofsalvation/8324360 to your computer and use it in GitHub Desktop.
converts a string to lower characters
# converts a string to lower characters
# @param string input
function strtoupper()
{
[ -z "$1" ] && return 1
printf "%s\\n" "$@" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' # tr '[:upper:]' '[:lower:]'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment