is_leap_year.sh - tell if year is leap
is_leap_year.sh [yyyy]
Tell if year is leap by exit status.
If no argument is given, current year will be used.
Is 2000 leap ?
$ is_leap_year.sh 2000 $ echo ${?} 0
Is 2001 leap ?
$ is_leap_year.sh 2001 $ echo ${?} 1
/usr/home/fplod/incas/varamma/varamma_ws/is_leap_year.sh sur aedon.locean-ipsl.upmc.fr
$Id: is_leap_year.sh 2 2008-12-18 16:56:52Z pinsard $