I have done the following at command line:
text="name with space"
echo $text
name with space
I am trying to use tr -d ' '
to remove the spaces and have a result of:
namewithspace
I've tried a few things like:
text=echo $text | tr -d ' '
No luck so far so hopefully you wonderful folk can help!