Created
March 29, 2017 08:52
-
-
Save limitusus/f442761ce148c809bf0fcb04f1c1ce6b to your computer and use it in GitHub Desktop.
各エンドポイントが200を返すかどうかをテストする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: $0 < redirect_list.tsv | |
while read from to;do | |
res=$(curl -s -D - -o /dev/null "$from") | |
if $(echo $res | grep "HTTP/1.1 200" > /dev/null); then | |
continue | |
fi | |
echo "from: $from to: $to" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment