Regcheck from shell

#!/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



http://www.domain.hu/domain/regcheck/

 
Logged in as: Oszkár Kmetti
usefull/regcheck.txt · Last modified: 2009.03.13 11:25 by oszi
 
Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki