Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created January 9, 2012 15:09
Show Gist options
  • Select an option

  • Save mlafeldt/1583330 to your computer and use it in GitHub Desktop.

Select an option

Save mlafeldt/1583330 to your computer and use it in GitHub Desktop.
Convert shell script variables to python
env -i dash -c '. ./vars.sh; set' | sed -e "/^[a-zA-Z_][a-zA-Z0-9_]*='.*'$/"\!d > vars.py
@KarwanBK
Copy link
Copy Markdown

Covertiong in to python ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment