#!/bin/bash HOSTNAME=`echo ${DISPLAY} | cut -f1 -d: | awk -F . {' print $1 '}` echo $HOSTNAME exit 0