Bash – How to get current month name in bash script

bashdate

What is the syntax to get the current month name (e.g. jan or feb) in a bash script?

Best Answer

You can use the date(1) command.

For example:

date +%b
Related Question