Skip to content

Instantly share code, notes, and snippets.

@evansolomon
Created May 15, 2013 07:54
Show Gist options
  • Save evansolomon/5582294 to your computer and use it in GitHub Desktop.
Save evansolomon/5582294 to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
printenv | grep "^\([[:alnum:]]\|[[:punct:]]\)\+=" | sed 's/=.*$//g' | while read var; do
echo "$var=$(printenv $var)\0"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment