Created
November 13, 2019 14:19
-
-
Save micahyoung/c0926750043ab231a2de1649bcb4fae7 to your computer and use it in GitHub Desktop.
Generate export commands for specific keys
This file contains 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
env | grep 'BOSH.*=' | cut -d'=' -f1 | while read key; do eval "val=\"\$$key\""; echo "export $key=\"$val\""; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment