Skip to content

Instantly share code, notes, and snippets.

@aont
Created March 10, 2011 15:43
Show Gist options
  • Select an option

  • Save aont/864298 to your computer and use it in GitHub Desktop.

Select an option

Save aont/864298 to your computer and use it in GitHub Desktop.
macport manipulate
#!/bin/sh
port installed \
| sed -e "1d" \
| grep active | sed -e "s/(active)//" \
| grep universal | sed -e "s/\+universal//" \
| sed -e "s/@[^\+]*//" \
| while read LINE; do
port clean $LINE
port install $LINE
port clean $LINE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment