📌  相关文章
📜  今天的日期 shell 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:40.540000             🧑  作者: Mango

代码示例1
#!/bin/bash
now="$(date)"
printf "Current date and time %s\n" "$now"
 
now="$(date +'%d/%m/%Y')"
printf "Current date in dd/mm/yyyy format %s\n" "$now"
 
echo "Starting backup at $now, please wait..."
# command to backup scripts goes here
# ...