You're replying to a comment by sergio.

June 01, 2012, 19:24

In order to get lowercase or uppercase from a variable. Let's see an example:

USER is a shell variable with the current user. For the purpose USER="admin".

- Uppercase
echo ${USER^} # Admin (min match)
echo ${USER^^}# ADMIN (max match)

Now we have te opposite situation, USER="DBADMIN"

- Lowercase
echo ${USER,} # dBADMIN (min match)
echo ${USER,,} # dbadmin (max match)^

Most of the people would be amazing with the funcionalities you can find on bash.

Nice post ;)

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "browser_325": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.