#!/bin/sh #< Get IP from /etc/hosts grep "^[^#].*$1" /etc/hosts | awk '{print $1}' exit 0