Domain expiration date script in bash

Problem: I have a lot of domains. I wanted to know the expiration date of each website/domain i own.

Therefore i made a little bash script which parses my textfile of domains (excel list copy 1:1) and outputs the date of expiration.

de, shop, eu and at Domains don’t offer the expiry date via whois. All other domains from mine worked perfectly.

Script:

#!/bin/bash
cat domains.txt | while read line; do
echo "$line"
whois $line | grep Expiry
done

Hinterlasse einen Kommentar

  Abonnieren  
Benachrichtige mich bei
Scroll to Top