I\'ve got a script \'myscript\' that outputs the following:
abc def ghi
in another script, I call:
declare RESULT=$(./myscr
In case that you're interested in specific lines, use a result-array:
declare RESULT=($(./myscript)) # (..) = array echo "First line: ${RESULT[0]}" echo "Second line: ${RESULT[1]}" echo "N-th line: ${RESULT[N]}"