Subj : Re: bash variable expansion To : MeaTLoTioN From : paulie420 Date : Tue Jan 31 2023 17:06:40 Me> I was doing some bash scripting a little while ago and while Me> manipulating some text using some neat shortcuts I thought I'd share Me> in case anyone has a need to do just this; As always, I've extracted this msg and it makes its way to my text folder. Thank you for the tricks - I think I can use some of these at times. Them pesky spaces and all... Me> If you wanted to capitalise every word, you could do this; Me> ``` Me> $ stringArray=( $string ) Me> $ echo ${stringArray[@]^} Me> This Is A String Me> ``` This one is interesting... why do we have to create a new variable; or... what can't you just; echo ${string[@]^} At any rate, thanks; I'll be playing around with how to use this wizardry on my own. |07p|15AULIE|1142|07o |08......... --- Mystic BBS v1.12 A48 (Linux/64) * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (1337:3/129) .