Uruchom SH z terminalu Mac
chmod +x fileName
bash fileName
subodhk
chmod +x fileName
bash fileName
./run.sh
#!/bin/bash
year=`date +%Y`
if ((“$year” % 400) == “0”)) || (( ( “$year” % 4 == “0”) && (“$year” % 100 != “0”) )); then
echo "This is a leap year. Don’t forget to charge the extra day!”
else
fi
echo "This is not a leap year."