d -p "年月日 (yyyymmdd) を指定してください:" yyyymmdd read -p "時刻 (hhmmss) を指定してください:" hh pp ss a=`date --date "$yyyymmdd" +%s` b=`expr $hh \* 3600 + $pp \* 60 + $ss ` c=`expr $a + $b` if test 1274360302 -le $c -a 1449414091 -gt $c; then eog c0000 elif test 1449414091 -le $c -a 1450588279 -gt $c; then eog r0001 elif test 1450588279 -le $c -a 1453315177 -gt $c; then eog r0004 elif test 1453315177 -le $c -a 1454238370 -gt $c; then eog r0005 elif test 1454238370 -le $c -a 1455164643 -gt $c; then eog r0006 elif test 1455164643 -le $c -a 1457007543 -gt $c; then eog r0008 elif test 1457007543 -le $c -a 1458822401 -gt $c; then eog r0009 elif test 1458822401 -le $c -a 1459722593 -gt $c; then eog r0010 elif test 1459722593 -le $c -a 1460657532 -gt $c; then