Skip to content

Instantly share code, notes, and snippets.

@heyseus1
Created July 14, 2016 17:02
Show Gist options
  • Select an option

  • Save heyseus1/e0712e9da1d8c169672935fd432d7e04 to your computer and use it in GitHub Desktop.

Select an option

Save heyseus1/e0712e9da1d8c169672935fd432d7e04 to your computer and use it in GitHub Desktop.
while loop with multiple variables specifically for dns add
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