找出 nginx.log 中所有 404 和 503 报错的 log 数据,取出前 3 条数据 cat nginx.log | awk '$9==404||$9==503' | head -3 找出 testerhome 首页的所有 http 和 https 的链接 curl https://testerhome.com | grep -o -E "(http|https)://[a-zA-Z0-9/.]*"