How to check if today is a weekend using bash or even perl?
I want to prevent certain programs to run on a weekend.
I like this way of running programs on weekdays:
[[ $(date +%u) -lt 6 ]] && weekday-program
It is a bit tricky construction, but compact and easy to add.