参考: 指定月の月末日を求める

set `cal 8 2010`; shift `expr $# - 1`; echo $1