#!/bin/bash
aweekago=`date -d "7 days ago" +%s`
for f in $(ls)
do
stat -c %Y ${f}
aa=`stat -c %Y "${f}"`
echo "${f} createtime is ${aa}"
if [ ${aweekago} -lt ${aa} ];then
echo "yes"
fi
done
转载于:https://www.cnblogs.com/xkjy/p/11477696.html
#!/bin/bash
aweekago=`date -d "7 days ago" +%s`
for f in $(ls)
do
stat -c %Y ${f}
aa=`stat -c %Y "${f}"`
echo "${f} createtime is ${aa}"
if [ ${aweekago} -lt ${aa} ];then
echo "yes"
fi
done
转载于:https://www.cnblogs.com/xkjy/p/11477696.html

被折叠的 条评论
为什么被折叠?