首页 > 系统服务 > 详细

基于时间日期编写的shell脚本

时间:2020-05-30 14:31:19      阅读:37      评论:0      收藏:0      [点我收藏+]

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    启动脚本即可

 

基于时间日期编写的shell脚本

原文:https://www.cnblogs.com/weiweirui/p/12992208.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!