[英]How to print the next line after condition satisfied using shell scripting?
[英]how to print the day of the month(mon,tue) after the date entered by user using 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
date --date "$year-$month-$day" +%A
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.