assign converted string to variable
I am trying to assign a converted first name to the variable new but when I do an $echo $new, instead of the converted name being displayed, the whole line after the '=' sign is displayed, what am I missing?
new='echo "$fname" | tr [A-Z] [a-z]'
Thanks.
|