From 3cc65ff1ceef66a0bd14e45c78eea0cc203a472d Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 30 Mar 2015 19:06:09 -0400 Subject: [PATCH] Initial Github Commit --- README | 0 ssh.sh | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 README create mode 100755 ssh.sh 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