Bash read output?
So you want
output=$(command)while read -r line; do process "$line"done <<< "$output"
See "Here strings" in the Bash manual.
while read -r line; do process "$line"done < <(command)
So you want
output=$(command)while read -r line; do process "$line"done <<< "$output"
See "Here strings" in the Bash manual.
while read -r line; do process "$line"done < <(command)