0

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.

3
  • I don't think it has any significance apart from being a day that is guaranteed to occur in any month (you could use any number from 1 up to and including 28) – steeldriver Jun 15 '19 at 21:32
  • That's right thanks .... – Sami Jun 15 '19 at 21:42
  • But not 3 to 13. They did not appear in September 1752. – ctrl-alt-delor Jun 15 '19 at 22:33
1

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
1
  • Thanks now i understand ...... – Sami Jun 15 '19 at 21:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.