Skip to content

Instantly share code, notes, and snippets.

@joeyAghion
Created December 5, 2014 19:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joeyAghion/92790388704a7a8122e5 to your computer and use it in GitHub Desktop.
Save joeyAghion/92790388704a7a8122e5 to your computer and use it in GitHub Desktop.
List heroku apps that I own with any associated domains.
# 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