Skip to content

Instantly share code, notes, and snippets.

@belotn
Created February 18, 2016 11:40
Show Gist options
  • Save belotn/2441e86da9ebbf47b676 to your computer and use it in GitHub Desktop.
Save belotn/2441e86da9ebbf47b676 to your computer and use it in GitHub Desktop.
pkg info | grep php | grep 5.4 | awk '{print $1}' | awk -F '-5.4' '{a = $1 ; sub("5","56",a) ; print "portmaster -y -D -o ` find /usr/ports -name "a" -print | sed \"s/\\/usr\\/ports\\///\"` "$1}' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment