How to obtain info from whois?

Hello, do you know any clever way to get information whether certain domain name become avaialble for registration from bash script?

Would be good to check for the availability like every 100miliseconds, i want to catch domain.

Closed as duplicate of Whois or nslookup.. for domain availability?