I tried generating an excel sheet from shell script. This must contain the result of a query.
I did get an excel sheet. But when I open that, the columns were not separated, instead all the fields of the query output appeared in the first column.
For example:
Below pasted is the result of a query. When I paste this directly in the excel without export, these will be placed in the first column of the excel.
In MS-Excel 2007, we will get "paste options", in which we can select "Use text import wizard" to separate the fields into columns in excel.
I need to implement this functionality through shell script.
Could you please help me resolve this issue?
COL1 COL2 COL3
---------------------- ---- ----------------------
12 a 1
198 b 2
159 ast 3
434 rd 4
56 5
1031 6
Thanks, Savitha