Skip to content

Instantly share code, notes, and snippets.

@micahyoung
Created November 13, 2019 14:19
Show Gist options
  • Save micahyoung/c0926750043ab231a2de1649bcb4fae7 to your computer and use it in GitHub Desktop.
Save micahyoung/c0926750043ab231a2de1649bcb4fae7 to your computer and use it in GitHub Desktop.
Generate export commands for specific keys
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