Bash read output? Bash read output? bash bash

Bash read output?


So you want

output=$(command)while read -r line; do    process "$line"done <<< "$output"

See "Here strings" in the Bash manual.

or process substitution

while read -r line; do    process "$line"done < <(command)