Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #if [ "$#" -ne 1 ]; then
- # echo "Usage: $0 <py pkg name using \$(pip freeze -l)>"
- # exit
- #fi
- for plugin in $(pip freeze -l); do
- PLUGIN=$(echo "$plugin" | awk -F == '{print $1}')
- echo "Uninstalling $PLUGIN..."
- expect -c "spawn pip uninstall $PLUGIN
- expect {
- \"Proceed (y/n)?\" {
- send \"y\r\n\"
- expect {
- exit
- }
- }
- }"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement