我们可以使用这些命令将Bash日期格式化为所需的日期。 ... #!/bin/bash d=`date +%m-%d-%Y` echo "Date in format MM-DD-YYYY" echo $d #MM-DD-YYYY.
確定! 回上一頁