I have 4 mysql queries executed by shell script like ./a.sh > b.xls
. So all the data is stored as a single worksheet.
I need to slit this, so that the first 2 queries are stored in the sheet 1 and the other two in sheet 2. Also, in each sheet I would like to have the output of each query side by side, not one by one.
Is it possible to do such thing in shell scripting?