Created
February 26, 2012 10:30
-
-
Save wallymathieu/1915916 to your computer and use it in GitHub Desktop.
uninstall inactive ports
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
res = %x[port installed | grep -v -i '(active)' | grep -v 'The following ports are currently installed' | sed -e :a -e '\$!N; s\/\\n\/ \/; ta'] | |
puts(res) | |
u = %x[port uninstall #{res}] | |
puts (u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment