Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- url=$1
- tmpfile=/tmp/_statuscount
- echo -n "">$tmpfile
- for i in {1..100}
- do
- response=$(curl --write-out %{http_code} --silent --output /dev/null $url)
- echo $response>>$tmpfile
- done
- grep -oE '[a-z0-9]+' $tmpfile | sort | uniq -c | sort -r | awk '{print $2" "$1}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement