Skip to content

Instantly share code, notes, and snippets.

@SteveRyan-ASU
Created June 6, 2018 16:34
Show Gist options
  • Save SteveRyan-ASU/708318769a6aee458869d1147b0efb64 to your computer and use it in GitHub Desktop.
Save SteveRyan-ASU/708318769a6aee458869d1147b0efb64 to your computer and use it in GitHub Desktop.
Terminus loop for creating a list of sites by upstream ID.
for site in $(terminus org:site:list --field Name <org>);do
if [[ ! -z $(terminus site:info --field Upstream $site | grep -o <upstream id>) ]];then
echo $site
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment