shell抓取1天前的目录

shell抓取1天前的目录:

a=stat -c %Y /aa/bb
b=date +%s
c=expr $b - $a
if [ $c -gt 86400 ];then

说明:
a为目录时间戳,b为当前时间戳

猜你喜欢

转载自blog.51cto.com/yangzhiming/2497760