Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getdated () {
- #return $(echo $1 | grep '^Last Updated on')
- return "test"
- }
- whoiscmd () {
- clear;
- data=$(mysql $DB -u$USER -p$PW -se "select name from domains")
- # makes a string of all the domain names
- k=0
- for i in $data; do
- (( k += 1 )) # arithmetic operation: (( . . . ))
- wh[$k]=$(whois $i) # grab whois info for each domain
- domains[$k]=$i #echo ${domains[$k]}
- dated[$k]=$(getdated ${wh[$k]})
- echo ${dated[$k]}
- sleep 5
- done
- }
- whoiscmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement