consider two methods in a script as below,
do_a()
{
spool $file1
select column1 from table1;
}
do_b()
{
spool $file2
select column1 from table2 where column2='xxxxx'
}
The first method returns just one value say 10001,I have to use this result in the second method in place xxxxx.
I used to call the method as
do_a >> ${outfile}
do_b >> ${outfile}
tell me how to get the arguments from method1 and pass it to method2.