Number of Mondays Falls on the First of the month

I want a command line can display number of Monday(s) which fall(s) on the first of the month in a given year without using sed or awk commands

I have this command that display the first date of the current month

date -d "-0 month -$(($(date +%d)-1)) days"

Read more here:

Content Attribution

This content was originally published by Oussama El figha at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: