bash shell function return string的相關文章
Converting string to lower case in Bash shell scripting - Stack Overflow

Converting string to lower case in Bash shell scripting - Stack Overflow

瀏覽:544
日期:2024-05-18
In Bash 4: To lowercase $ string="A FEW WORDS" $ echo ${string,} a FEW WORDS $ echo ${string,,} a few words $ echo ${string,,[AEIUO]} a FeW WoRDS $ string="A Few Words" $ declare -l string $ string=$string; echo $string a few words To uppercase $ string="...看更多