Skip to content

Instantly share code, notes, and snippets.

@i03nomura1y
Created November 8, 2012 06:21
Show Gist options
  • Save i03nomura1y/4037185 to your computer and use it in GitHub Desktop.
Save i03nomura1y/4037185 to your computer and use it in GitHub Desktop.
12/1 が土曜日の年を echo する sh スクリプト
for year in $(seq 1900 2050); do
if [ `cal 12 $year | head -n 3 | tail -n 1 | tr -d ' '` = "1" ] ; then
echo $year;
fi;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment