When I assign in a bash script
DATE=`date`
and
TODAY=${DATE:4:7}
then TODAY
contains "Jul 2 "
instead of "Jul{2 spaces} "
.
So I want to change the first space in $TODAY
into two spaces.
How do I do that?
Or how can I avoid the first wrong assignment to $TODAY
?