RosettaCodeData/Task/Long-year/UNIX-Shell/long-year-1.sh
2023-07-01 13:44:08 -04:00

4 lines
88 B
Bash

long_year() {
cal 1 $1 | grep -q ' 3 *$' && return 0
cal 12 $1 | grep -q ' 26 *$'
}