Hi,
#Script mentioned below
txt=($(echo `./demo1.sh`))
p=0
for p in "$txt"
do
col=($(./generateTable /import/data01/sri/Developer/SqlReport/Lab/23/${var[11]} "$p"))
.
.
.
.
done
o/p displayed upon executing a script called "demo1.sh" is as below(two seperate lines):
class=H,pool=row;duration.count,duration.sum
class=E,pool=row;duration.count,duration.sum
Now I want this to be stored in an variable called text.After that I want to parse the variable and take each line as single individual input and continue executing the script inside a for loop.The above script is my script, its working, but its taking only the 1st line and comes out of the loop.
Plz help.