Skip to content

Instantly share code, notes, and snippets.

@lucascoelhof
Created January 4, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucascoelhof/3478ea8c45725711bae65f91618ffff9 to your computer and use it in GitHub Desktop.
Save lucascoelhof/3478ea8c45725711bae65f91618ffff9 to your computer and use it in GitHub Desktop.
How to unset all bash variables that match a prefix
unset $(echo "${!PREFIX*}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment