I have a SQL filequery.sql running thorugh a unix shell script and it directs an ouput to another SQL file called as result.sql
First file will give the sample output of below which will be written in the result.sql,
drop * from table1;
drop * from table 2;
drop * from table 3; etc..
I need to execute both query.sql and result.sql in a single shell script and this should create a output file called as output.txt. How can I achieve this?