I'm looking for a Date for like Mar 1
(i.e. space+padded space of day of month)
This is giving correct format => Mar 1
date -d "yesterday 13:00" +"%b %e"
However, when I try to put into a variable, the extra added space is missing.
DATE=`date -d "yesterday 13:00" +"%b %e"`
echo $DATE gives=> Mar 1 (only padded space getting)
Any idea how to get that => Mar 1
(i.e. space+padded space of day of month)