题解 | #nginx日志分析5-统计爬虫抓取404的次数#
nginx日志分析5-统计爬虫抓取404的次数
https://www.nowcoder.com/practice/3a3573822a854710a259d89066aad695
#!/bin/bash # function solution() { # awk '{ # if ($0 ~ '/www.baidu.com/' && $9 = 404 ) ++a # } END { # print a # }' nowcoder.txt # } # solution # grep 'baidu' | grep '404' | sed -n '$=' grep 'baidu' | grep '404' | wc -l#你觉得今年春招回暖了吗##23届找工作求助阵地##我的实习求职记录##零基础学习C++#