Guest User

Untitled

a guest
Jul 17th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/sh
  2. # This script will request a port name and find its version number.
  3.  
  4. echo "Type the port name that you require the version number for followed by [ENTER]:"
  5.  
  6. read port
  7.  
  8. portupgrade `pkg_info -x $port | head -1 | rev | cut -b 2- | awk '{print $1}' | rev`
  9. exit 0
Add Comment
Please, Sign In to add comment