multiple variable looping bash

If you want to loop through something with more than one variable in bash this is your ticket to ride:

#!/usr/bin/env bash
while read -r x y z; do
echo "$x $y $z"
done <<'_____HERE
a b c
1 2 3
x y z
7 8 9

Leave a Reply

Your email address will not be published. Required fields are marked *