Last active
August 29, 2015 14:04
-
-
Save n8henrie/16e2a6a7899079676100 to your computer and use it in GitHub Desktop.
Oneliner to batch uninstall my pyobjc libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires GNU xargs `brew install findutils --default-names`, and I used ack instead of grep just out of habit. | |
# Will also leave the first item from the list out because of the weird way `$@` works, so manually uninstall it. | |
xargs -a <( pip3 list | ack pyobjc | cut -d " " -f 1 ) bash -c 'for f in "$@"; do echo y | pip3 uninstall "$f"; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment