Unix/Linux code to test whether “today” is a weekend day (or weekday)
By Alvin Alexander. Last updated: January 27 2018
If you ever need an example of a Unix/Linux shell script where you need to determine whether today is a weekend day, I can confirm that this code works: