Created
August 21, 2017 13:33
-
-
Save leventyalcin/3209a33db82565ec3936acb95d5bbf13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Slack command generator for AWS status feeds of the default region | |
for i in $(curl -q -o- http://status.aws.amazon.com | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep $AWS_DEFAULT_REGION | awk -F'"' '{print $2}'); \ | |
do \ | |
echo "/feed subscribe http://status.aws.amazon.com$i"; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment