SHELL script の 実行
Mon Oct 19 12:15:25 JST 2026
day of week=Mon(
月
)
month=Oct
day=19
time=12:15:25
year=2026
20261019121525
date
set `date`
echo '<br>day of week='$1'('
if [ Mon = Mon ] ; then
echo '月'
elif [ $1 = Tue ] ; then
echo '火'
elif [ $1 = Wed ] ; then
echo '水'
elif [ $1 = Thu ] ; then
echo '木'
elif [ $1 = Fri ] ; then
echo '金'
elif [ $1 = Sat ] ; then
echo '土'
elif [ $1 = Sun ] ; then
echo '日'
fi
echo ')'
echo '<br>month='$2
echo '<br>day='$3
echo '<br>time='$4
echo '<br>year='$6
echo `date '+%Y%m%d%H%M%S'`