title: Get 4th Thursday of November in Shell Script
body: <p>I am trying to add write a script which checks for file arrivals and I want to exclude some days(2nd January, 26th December, Each Monday, Day after Thanksgiving Day) I have got checks for all except Thanksgiving which is a bit tricky to do checks for a day after 4th thursday of november every year in the IF condition.</p>
  
  <pre><code>CURRENT_DATE=$(TZ=America/New_York date +%Y%m%d)
  echo $CURRENT_DATE
  
  Year=$(TZ=America/New_York date +%Y)
  echo $Year
  
  MD=$(TZ=America/New_York date +%m%d)
  echo $MD
  
  if [ "$DAY" == "Mon" ] || [ "$MD" == "0102" ] || [ "$MD" == "1226" ];
  then
     echo "Files Not Expected - No Alerts Raised"
  else
     echo "Files Expected"
  </code></pre>