From 7eba4293714b9dce86c07ccf2fdaddaa11a4c3c7 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 28 Aug 2015 23:39:37 +0200 Subject: Reaktor: add nix support, packaging --- commands/taken | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 commands/taken (limited to 'commands/taken') diff --git a/commands/taken b/commands/taken deleted file mode 100755 index b8beba6..0000000 --- a/commands/taken +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -#!/bin/bash - -# domainavailable -# Fast, domain name checker to use from the shell -# Use globs for real fun: -# domainavailable blah{1..3}.{com,net,org,co.uk} -# Inspired by foca / giles: -# http://gilesbowkett.blogspot.com/2009/02/simple-bash-domain-availability.html - -for d in $@; -do -if host "$d" | grep "NXDOMAIN" >&/dev/null; then - w=$(whois "$d") - if ! test "$?" -eq 0 ;then - echo "$d - whois not available" - elif echo "$w" | grep -Ei "(No match|NOT FOUND|Status: free)" >&/dev/null; then - echo "$d available"; - elif echo "$w"| grep -Ei "(Status: invalid)" >&/dev/null ;then - echo "$d invalid" - else - echo "$d taken"; - fi -else - echo "$d taken"; -fi -done -exit 0 -- cgit v1.2.3