|I want to translate a variable and read the output to another variable|
echo $my_var | tr '0123456789' 'ZZZZZZZZZZ'
works as I'd expect, printing the correctly translated output. But how do I assign the output to a variable.
I wanted to do something like
my_new_var = `$my_var | tr '0123456789' 'ZZZZZZZZZZ'`
but my computer is saying no.
Any help greatly appreciated