Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # split our full domain name into two parts...
- i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
- i="$(_math "$i" - 1)"
- top_domain="$(echo "$fulldomain" | cut -d. -f "$i"-100)"
- i="$(_math "$i" - 1)"
- sub_domain="$(echo "$fulldomain" | cut -d. -f -"$i")"
Add Comment
Please, Sign In to add comment