Advertisement
Guest User

Untitled

a guest
Jan 28th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. getdated () {
  2.     #return $(echo $1 | grep '^Last Updated on')
  3.     return "test"
  4. }
  5.  
  6. whoiscmd () {
  7.     clear;
  8.    
  9.     data=$(mysql $DB -u$USER -p$PW -se "select name from domains")
  10.     # makes a string of all the domain names
  11.    
  12.     k=0
  13.    
  14.     for i in $data; do
  15.         (( k += 1 ))        # arithmetic operation: (( . . . ))
  16.         wh[$k]=$(whois $i)  # grab whois info for each domain
  17.         domains[$k]=$i      #echo ${domains[$k]}
  18.         dated[$k]=$(getdated ${wh[$k]})
  19.         echo ${dated[$k]}
  20.         sleep 5
  21.     done
  22.    
  23. }
  24.  
  25. whoiscmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement