Make cmd1 populate the var for cmd2

Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.
This commit is contained in:
Bruno Bronosky 2017-09-13 15:32:41 -04:00 committed by GitHub
parent 26e1cb06bf
commit 7d6b61a645
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
- Note your hosted zone ID
```bash
aws route53 list-hosted-zones | jq '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id'
HZC=$(aws route53 list-hosted-zones | jq -r '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id' | tee /dev/stderr)
```