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 - Connect Apple Time Capsule

Steps to connect Apple Time Capsule to UBUNTU(Hardy Heron) 1. Client Side Software - Install smbfs and smbclient 2. Make a Mount Point - cd /media sudo mkdir capsule 3. Interactive Mount Statement - sudo mount.cifs // windowsShare / "TimeCapsuleName" /media/capsule/ -o pass=password i. the windowsShare is the IP that you assign to the Time Capsule using your Apple AirPort Utility on a windows/mac machine, ii. The 'TimeCapsuleName' is the name enclosed in double quotes is the name assigned to your Time Capsule when it it set up on the Windows/Mac. iii. /media/capsule is the name of the mount point that you selected, iv. password is replaced with whatever password you elected to use during the Airport configuration.

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