2021年3月2日
摘要: 计算文件的创建了多久,距离当前的时间: ans=0s if [ -f ${File} ]; then #如果文件存在 a=`stat -c %Y $File` b=`date +%s` c=$((b-a)) swap_seconds $c #转换为时分秒 fi echo $ans 转换为时分秒:如果 阅读全文
posted @ 2021-03-02 11:18 细雨微光 阅读(1393) 评论(0) 推荐(0)