Created
November 8, 2012 06:21
-
-
Save i03nomura1y/4037185 to your computer and use it in GitHub Desktop.
12/1 が土曜日の年を echo する sh スクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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