Grep Redirects
- Tags:
for h in `seq 1 10`; do ssh -o ConnectTimeout=5 micro-web${h} "cat /var/log/httpd/access_log.*"; done | grep -e "HTTP/1.1\" 301" | awk '{print $4 " " $7}' | sed "s/^[\/[];s/\?.*;s/:[0-9]*:[0-9]*:[0-9]*//" | sort | uniq -c
- Login to post comments
