Created
December 5, 2014 19:45
-
-
Save joeyAghion/92790388704a7a8122e5 to your computer and use it in GitHub Desktop.
List heroku apps that I own with any associated domains.
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
# apps in the *first* section of heroku apps output (i.e., apps that I own) | |
apps=( `heroku apps | sed -e '/^$/,$d' | grep -v '^=='` ) | |
# for each app that I own, show associated domains | |
for (( i = 0 ; i < ${#apps[@]} ; i++ )) | |
do | |
echo `heroku domains --app ${apps[$i]}` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment