Get the number of client IP access sites and request pages
#/bin/bashcd/data/iplog/$1/pvtxt=$ (Ls-l|awk ' {print $NF} ' |sed ' 1d ') for n in $txtdoip =$ (cat/root/iplist) for N1 in $ipdog Rep $n 1 $n >>/opt/txt01/$n 1-$1-cpv.txtdonedonerep_txt=$ (cd/opt/txt01/&&ls-l *cpv.txt|awk ' {print $NF} ' |sed ' 1d ') cd/opt/txt01for n2 in $rep _txtdo # #cat $n 2 |awk-f [/] ' {print $} ' |sort|uniq-c|sort-nr >> $n 2-testcat $ N2|awk-f ' []+ ' {print $4} ' |sort|uniq-c|sort-nr >>/opt/txt02/$n 2-cpvdonecd/opt/tar zcf/opt/txt02/$1-$2-cpv-ip log.tar.gz./txt02[[email protected] test001]# cat/root/iplist 117.136.79.39117.136.79.32117.136.79.33117.136.79.37117.136.79.36120.239.77.229223.104.63.150[[email Protected] test001]# cd/opt/txt01/[[email protected] txt01]# ls117.136.79.32-2018-05-17-cpv.txt 117.136.79.36-2018-05-17-cpv.txt 117.136.79.39-2018-05-17-cpv.txt 223.104.63.150-2018-05-17- Cpv.txt117.136.79.33-2018-05-17-cpv.txt 117.136.79.37-2018-05-17-cpv.txt 120.239.77.229-2018-05-17-cpv.txt[[ Email protected] txt01]# CD/Opt/txt02/[[email protected] txt02]# LS117.136.79.33-2018-05-17-CPV.TXT-CPV 117.136.79.37-2018-05-17- CPV.TXT-CPV 120.239.77.229-2018-05-17-CPV.TXT-CPV 223.104.63.150-2018-05-17- CPV.TXT-CPV117.136.79.36-2018-05-17-CPV.TXT-CPV 117.136.79.39-2018-05-17-CPV.TXT-CPV 2018-05-17-233- Cpv-iplog.tar.gz
[[email protected] txt01]# head -10 /opt/txt02/117.136.79.37-2018-05-17-cpv.txt-cpv 6 http://m.31xs.net/13/13431/10319091.html 4 https://m.yubook.net/novel/61462/7938632.html 4 https://m.ybdu.com/xiaoshuo/18/18935/6895763.html 4 https://m.xiaoshuoli.com/i35445/18566473.html 4 https://m.xiaoshuoli.com/i18640/18476060.html 4 https://m.biquxu.com/24/24853/12085909.html 4 http://m.wutuxs.com/html/1/1071/842907.html 4 http://m.sanhao33.com/sort-8-5/ 4 http://m.jw46.com/sort/ 4 http://m.bxwx.io/book_77838/22048312.html
Gets the number of client IP access sites and the Request page script