Skip to main content

Bash - Convert to Uppercase / Lowercase

y="HELLO"
val=$(echo "$y" | tr '[:upper:]' '[:lower:]')
string="$val world"

Comments

Anonymous said…
This comment has been removed by a blog administrator.

Popular posts from this blog

Ubuntu - Install Adobe Air

Download the file wget http://download.macromedia.com/pub/labs/air/linux/adobeair_linux_a1_033108.bin The name of the file is adobeair_linux_a1_033108.bin Save the file in the Home folder (Places > Home Folder) Run this command: chmod +x adobeair_linux_a1_033108.bin Now run this command: sudo ./adobeair_linux_a1_033108.bin