I need to change the content of a variable in a script I'm writing.
Now in the variable I have something like "[number]username" i.e. "david"
and I need to put it on another variable without numbers and the square brackets i.e. "david".
So, I need something that removes everything inside and the brackets from the variable
and parse it to another one, how can I do it?