And, as I can't resist....
Looking into the code, I had the impression the author appears to have another locale, i.e. LANE=de.
Which made me wonder whether he really had meant to show, the date in the format as you have shown in the picture.
Have a look in lang=de the date would look like this:
Code: Select all
LANG=de_DE.UTF-8 date --date="1 day" | awk '{print $1" "$2}'
Mi 4.
Code: Select all
LANG=en_US.UTF-8 date --date="1 day" | awk '{print $1" "$2}'
Wed Jul
replace this
Code: Select all
echo `date --date="1 day" | awk '{print $1" "$2}'`
Code: Select all
date --date='1 day' '+%a %e'
If you really want to see the month 4 times
Code: Select all
date --date='2 day' '+%a %b'
Thu Jul