I have two digit month value (01 to 12). I need to get the three letter month abbreviation (like JAN, FEB, MAR etc.) I am able to get it in mixed case using the following command:
date -d "20170711" | date +"%b"
The output is "Jul" I want it to be "JUL". Is there a standard date option to get it?
date -d "20170611" | date +"%b"
)date
command is simply discarded; the seconddate
command prints the current month regardless