Skip to content

Instantly share code, notes, and snippets.

@jrelo
Created October 5, 2019 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrelo/5ea6bc83c7c8645c0d88a5fa9393bd22 to your computer and use it in GitHub Desktop.
Save jrelo/5ea6bc83c7c8645c0d88a5fa9393bd22 to your computer and use it in GitHub Desktop.
2 simultaneous variables in bash loop
seq 3189 3193 > x.txt ; seq 5003 5008 > y.txt; while read -r x && read -r y <&3; do echo number wat${x}.hostgator.com wat${y}.hostgator.com ;done <x.txt 3<y.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment