So i wrote a script to create a directory named based on the year + month which is like:
mkdir $(date +"%Y%^b")
which would create a directory like:
2021JAN
However, I would like to store the name in a variable. I tried doing:
dirname = $(date +"%Y%^b")
echo $dirname
mkdir $dirname
But nothing it doesn't seemed to be working. Even echoing it gives a
.
.
What seemed to be causing the issue?