I have a simple bash script that looks like this:
RED=$(tput setaf 1)
echo "$REDERROR - ..."
and I want it to print ERROR
in red.
If i change my code to this:
RED=$(tput setaf 1)
echo "$RED ERROR - ..."
it prints ERROR
in red but with a leading space.
So how can I eliminate that leading space and still reference my variable $RED
before it?