I need to know what does the number 15 mean here and where it comes from. I searched enough for it so I appreciate a little help:
for i in {1..12} ; do
mkdir $(LC_TIME=C date +%B -d "${i}/15")
done
Thanks in advance.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI need to know what does the number 15 mean here and where it comes from. I searched enough for it so I appreciate a little help:
for i in {1..12} ; do
mkdir $(LC_TIME=C date +%B -d "${i}/15")
done
Thanks in advance.
It is the day.
test@com:~/test$ for i in {1..12} ; do echo $(LC_TIME=C date +%B -d "${i}/29"); done
January
date: invalid date ‘2/29’
March
April
May
June
July
August
September
October
November
December