Created
March 8, 2013 06:26
-
-
Save rupakg/5114592 to your computer and use it in GitHub Desktop.
Uninstall several gems at one shot
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
#!/bin/sh | |
# create a list of all gems or grep | |
gem file > u.txt | |
# edit u.txt and remove gems you dont want to uninstall | |
for u in `cat u.txt`; do echo $u; done | cut -d" " -f1 | xargs gem uninstall -aIx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment