#!/bin/bash
printf -v day '%(%a)T'
case $day in
Sat|Sun) echo "Hooray!";;
*) echo "Go back to work! It's $day";;
esac
case $(printf -v day '%(%a)T') in
Sat|Sun) echo "Hooray!";;
*) echo "Go back to work! It's $day";;
esac
IyEvYmluL2Jhc2gKCnByaW50ZiAtdiBkYXkgJyUoJWEpVCcKCmNhc2UgJGRheSBpbiAKICAgIFNhdHxTdW4pIGVjaG8gIkhvb3JheSEiOzsKICAgICopIGVjaG8gIkdvIGJhY2sgdG8gd29yayEgSXQncyAkZGF5Ijs7CmVzYWMKCmNhc2UgJChwcmludGYgLXYgZGF5ICclKCVhKVQnKSBpbiAKICAgIFNhdHxTdW4pIGVjaG8gIkhvb3JheSEiOzsKICAgICopIGVjaG8gIkdvIGJhY2sgdG8gd29yayEgSXQncyAkZGF5Ijs7CmVzYWMK