Here's a link
I referred this but I am not able to understand, how I can split: Testing123 into Testing and 123
temp=${str%%:*} #only if there was colon in between but in my case there isn't.
If there was a space b/w them I would have gotten it to work.
Update: I want to split letters and digits.
Character count would 5, TESTI, and then number would be 4.
so if it is TESTI123.
I want it to be var1 = testi, var2 = 123
var1=$(echo $STP | cut '[A-Z]' -f1)
var2=$(echo $STP | cut '[0-9]' -f1)
Even this didnt work, cut: [A-Z]: No such file or directory cut: [0-9]: No such file or directory
Any help would be appreciated.