以前寫Bash Shell腳本,大小寫轉換通常這樣做:str="This is a Bash Shell script."newstr=`tr '[A-Z]' '[a-z]'
www.linuxidc.com