I have a line in my shell script like below
output_logs=`sh script2.sh $1 $2`
script2.sh
produce lots of lines of logs. I want to grep
specific lines of its output. The problem I have is $output_logs
has the entire output of script2.sh
as a single line string and grep
produces strange results because of this. How to get the logs from script2.sh
to be stored in individual lines?