79583148

Date: 2025-04-20 07:58:25
Score: 2.5
Natty:
Report link

The correct method for establishing the numeric day of the week has been given by multiple contributors "$(date +%u)" but the OP's original logic was flawed. The modulus 7 of the day of the month is not the day of the week!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Felim Doyle