shell 实例。。。ing
jiqi=(0102030405060708091011121314)
for((d=4;d<11;d++))
do
year=`date--date="$ddayago"+%Y`
month=`date--date="$ddaysago"+%m`
day=`date--date="$ddaysago"+%d`
for((i=0;i<14;i++))
do
if[${jiqi[${i}]}-ne'01']&&[${jiqi[${i}]}-ne'03']
then
lzop-dcf$year$month/$year$month$day/input_shouji_access_log.$year$month${day}22.resin${jiqi[${i}]}*|head-n7000|awk'{print$4}'|sort|uniq-c|sort-nr>>/search/odin/resin/WebContent/shellscript/jiankong/$year$month$day.log
fi
done
done
-------------------------------------------
相关推荐
zhangjie 2020-11-11
步知道 2020-10-27
tufeiax 2020-09-03
85251846 2020-09-14
tianhuak 2020-11-24
huha 2020-10-16
lianshaohua 2020-09-23
laisean 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
以梦为马不负韶华 2020-10-20
CARBON 2020-10-20
彼岸随笔 2020-10-20
lianshaohua 2020-10-20
yutou0 2020-10-17
JohnYork 2020-10-16
xiaonamylove 2020-10-16