commit 3cc65ff1ceef66a0bd14e45c78eea0cc203a472d Author: Russ Long Date: Mon Mar 30 19:06:09 2015 -0400 Initial Github Commit diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/ssh.sh b/ssh.sh new file mode 100755 index 0000000..f8c08fc --- /dev/null +++ b/ssh.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Created by rlong to get around OSX 10.10's crappy dns resolution and lack of appending search domains. + +ip=`nslookup $1 | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |tail -1` + +ssh $ip