yuljk

freedns

May 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # split our full domain name into two parts...
  2. i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
  3. i="$(_math "$i" - 1)"
  4. top_domain="$(echo "$fulldomain" | cut -d. -f "$i"-100)"
  5. i="$(_math "$i" - 1)"
  6. sub_domain="$(echo "$fulldomain" | cut -d. -f -"$i")"
Add Comment
Please, Sign In to add comment