I want to initialise a variable with yesterday's date in a specific format . ex---if today is 15 Feb, then variable should be-- var=Feb 14
date -d"-1day" +"%b %d" is not working. I don't know whether the syntax is incorrect or why else it is not working.
What is the correct way to use it?