基于时间日期编写的shell脚本
vim datetime.sh
#!/bin/bash
#
#********************************************************************
#Author: wei
#QQ: 1655841639
#Date: 2020-05-30
#FileName: test.sh
#URL:
#Description: The test script
#Copyright (C): 2020 All rights reserved
#********************************************************************
today=`date +"%F %T"`
echo $today
#chmod +x datetime.sh 赋予脚本权限
#bash datetime.sh 启动脚本即可