标签: linux bash shell scripting
这不起作用
echo " ENter Day Month Year " read day read month read year cal $month $year echo "`date --date '$year-$month-$day' +%A`"
但是,这可行
date --date '2018-11-02' +%A
答案 0 :(得分:0)
date --date "$year-$month-$day" +%A