Created
July 14, 2016 17:02
-
-
Save heyseus1/e0712e9da1d8c169672935fd432d7e04 to your computer and use it in GitHub Desktop.
while loop with multiple variables specifically for dns add
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while read -u 3 i; read -u 4 g; do | |
| echo "$i" | |
| echo "$g" | |
| dns-add-record --zone=dr.wd5.wd --record="$i" --type=CNAME --record-value="$g" | |
| done 3< list.csv 4< list2.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment