#!/bin/bash if [ $# -ne 1 ]; then echo "Usage: $0 "; exit 1; fi COUNTRY=`geoiplookup $1 | head -1 | cut -d':' -f 2` echo "$COUNTRY"