Code:
[fris@fris ~]$ ./xxx.sh freeporn.xxx sexblog.xxx fris.xxx bunny.xxx happyendings.xxx bigsmiles.xxx
freeporn.xxx is Taken
sexblog.xxx is Taken
fris.xxx is Available
bunny.xxx is Taken
happyendings.xxx is Taken
bigsmiles.xxx is Available
[fris@fris ~]$
Code:
for i in $@; do echo -n "$i is "; whois $i | grep -F "$(echo -e 'NOT FOUND')" -q && echo 'Available' || echo 'Taken'; done
enjoy ;)