I'm trying to write a script to export a txt file to excel. The text file is a delimited with commas
Example:
Report Date,12/12/2014
Report By, Person
Issue, Job Failed
I tried exporting as csv and mailed to my id. But if I open the csv file the data is coming in single column.
Output I'm getting:
Column A
Report Date,12/12/2014
Report By, Person
Issue, Job Failed
But I'm expecting below output
Column A Column B
Report Date 12/12/2014
Report By Person
Issue Job Failed
I checked the forum. I'm getting examples to export txt to csv which gives the similar result as what I'm getting. I dont have perl so I need a solution to get the above output using ksh
If you save it with a .txt suffix and then open it with Excel, it will start the wizard where you can define the columns and how you import it. Mark it as delimited and check the comma selection.