Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • double condition where it checks for if its the day is within the first week and if the day is a monday if [[ $(date +%d) =~ 0[1-7] -a $(date +%u) == 1 ]]? Commented May 24, 2018 at 20:48
  • 1
    @thebtm No, -a is for [ ], not for [[ ]]. No need to call date twice. See my edit. Commented May 24, 2018 at 20:53
  • This Answer works too but the other one is easier to read for if/when others need to take over the script. Thank You for the info though. Commented May 24, 2018 at 21:10