返回顶部

基于时间日期编写的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    启动脚本即可

 

posted @ 2020-05-30 13:35  九尾cat  阅读(326)  评论(0编辑  收藏  举报