Subj : Re: bash variable expansion To : paulie420 From : MeaTLoTioN Date : Wed Feb 01 2023 16:23:38 On 31 Jan 2023, paulie420 said the following... pa> Me> If you wanted to capitalise every word, you could do this; pa> Me> ``` pa> Me> $ stringArray=( $string ) pa> Me> $ echo ${stringArray[@]^} pa> Me> This Is A String pa> Me> ``` pa> pa> This one is interesting... why do we have to create a new variable; pa> or... what can't you just; pa> echo ${string[@]^} Ah good question, the reason is because you need an array to be able to iterate over words in it, otherwise you'll just iterate over each character. That's why I made the array first out of the original string, it uses spaces as the separator, then you can iterate over each item in the array as intended. Hope this helps =) --- |14Best regards, |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64) * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101) .