#!/bin/bash NIC="http://www.domain.hu/domain/regcheck/?dname=" WGET="/usr/bin/wget -o /dev/null -q -O -" GREP="/bin/grep" SED="/bin/sed" ECHO="/bin/echo" DOMAIN="$1" if [ "$DOMAIN" == "" ]; then exit 1 fi OUT=`$WGET $NIC$DOMAIN |$GREP -E "\-(W|E|S)\- " |$SED -r "s/<.+>//g"` $ECHO -e "$OUT\n" exit 0