for loop with multiline data
You'd use a while
loop instead.
while read i
do
echo "test$i"
done <<< 'a
b
c'
export a="
a
b
c
"
for i in $a; do echo "test$i";done
You'd use a while
loop instead.
while read i
do
echo "test$i"
done <<< 'a
b
c'
export a="
a
b
c
"
for i in $a; do echo "test$i";done