• 课间作业1:
    curl https://testing-studio.com/ | grep -o -E "https?://[^ '\"]" | sed "s/[0-9]/$/g"
    课间作业2:
    cat nginx.log | grep -E " 404 | 500 " | sed "s/https\?:\/\/[^ '\")]
    //g"
    课间作业3;
    cat nginx.log | awk '{print $1}'|sort|uniq -c|sort -nrk 1 -t' '|awk '{print $2}'|head -1
    课间作业4:
    cat nginx.log | awk '{print $7}'|sort|uniq -c|sort -nrk 1 -t' '|awk '{print $2}'|head -1

    课后作业:
    #! /bin/bash

    NotLink(){
    curl $1 | grep -o -E "http[s]://[^ '\"]*"|awk -F"//" '{print $2}' > ipaddress.txt

    cat ipaddress.txt|while read line
    do
    code=$(curl -I -m 10 -o /dev/null -s -w %{http_code} $line | grep -o -E '[1|3|4|5][0-9][0-9]')
    tab=""
    if [ "$code" != "$tab" ]
    then
    NotlinkWeb="https://$line"
    echo "不能访问的网址:$NotlinkWeb"
    fi
    done
    }

    NotLink https://testing-studio.com/

  • 我可以在这散播一条广告吗?我有一张第五届移动互联网测试开发大会的门票,如有需要的童鞋可以联系我哦,价格私聊,实在是因为临时有事去不了了,1340138276