Subj : Re: bash variable expansion To : MeaTLoTioN From : paulie420 Date : Fri Feb 03 2023 17:02:27 Me> pa> This one is interesting... why do we have to create a new variable; Me> pa> or... what can't you just; Me> pa> echo ${string[@]^} Me> Me> Ah good question, the reason is because you need an array to be able to Me> iterate over words in it, otherwise you'll just iterate over each Me> character. That's why I made the array first out of the original string, Me> it uses spaces as the separator, then you can iterate over each item in Me> the array as intended. I'm understanding - thx for the deets. |07p|15AULIE|1142|07o |08......... --- Mystic BBS v1.12 A48 (Linux/64) * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (1337:3/129) .