JoselitoFalso
JoselitoFalso
全部文章
题解
归档
标签
去牛客网
登录
/
注册
JoselitoFalso的博客
全部文章
/ 题解
(共5篇)
题解 | #nginx日志分析4-查询某个IP的详细访问情况#
#!/bin/bash awk '1 ~ /192\.168\.1\.22/ {print 7}' nowcoder.txt | sort | uniq -c | sort -rn | sed 's/^ *//g'
bash
2022-01-18
2
444
题解 | #nginx日志分析3-统计访问3次以上的IP#
#!/bin/bash ipv4_regx="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]).){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])" grep -Eo ipv4_regx ...
bash
2022-01-18
1
365
题解 | #nginx日志分析2-统计某个时间段的IP#
#!/bin/bash ipv4_regx="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]).){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])" #不含23:00:00 左闭右开区间 ...
bash
2022-01-18
0
505
题解 | #nginx日志分析1-IP统计#
#!/bin/bash ipv4_regx="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]).){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])" grep '23/Apr/2020' ...
bash
2022-01-18
0
390
题解 | #nginx日志分析5-统计爬虫抓取404的次数#
#!/bin/bash grep 'http://www.baidu.com/search/spider.html' nowcoder.txt | grep -c 404
bash
2022-01-17
0
433