adilsonrapozojr
10/2/2018 - 10:35 PM

Iterate shell while

while read -r line; do
    echo "... $line ..."
done <<< "$var"

while read -r line; do
    echo "... $line ..."
done < <(cat file)

    echo "... $line ..."
done <file