Skip to content

Instantly share code, notes, and snippets.

@AmirAref
Created July 24, 2022 19:38
Show Gist options
  • Save AmirAref/70a36533af8217b3ac08ba51f18b8826 to your computer and use it in GitHub Desktop.
Save AmirAref/70a36533af8217b3ac08ba51f18b8826 to your computer and use it in GitHub Desktop.
a bash script to find and remove the virtualenv folders
find . -wholename '*venv/bin/activate' | awk -F'bin' '{print $1}' | xargs -I '{}' rm -r '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment