linux - Convert .dat File to .xls file -
I am using automation to download a .dat file and parse it in Perl by using Excel Parser module I am But whenever I tried to use the .at file, it does not say a valid Excel file. (All these operations have been done in Linux)
As a work around me, I moved the .dat file into a Windows machine and opened it using Excel file. Then saved the .at file as an Excel file in Windows. Then re-send that file to the Linux machine. Now the Perl script can parse the file.
Instead of this long way, can I convert the .dat file into an Excel file in Linux? if so, how?
Some lines before my .dat file:
F_NF_CD ART_GRP_NO ART_GRP_DESCR ART_GRP_SUB_NO ART_GRP_SUB_DESCR ART_NO ART_DESC SELL_UNIT PACK_TYPE SELL_PR VAT_PERC MRP_ PRICE STOCK ART_STATUS EXTRA_INFO BLOCK_IND
F191 Hyghenne paper 3 laddiege hegene 287432 soft side valle large soft 15 p1ea 89.8 5 99 47 1 cell
F191 Hygiene papers 3 LDE patients 287422 Sophie side walls Regular soft 15 P1EA 80.73 5 89 0 1 cell
Actually read meta data before parsing the script file Tries by. If the module is watching that metadata is not excellence, then it will not go ahead so .xls is important to change the metadata of the .at file. Which probably did not think me without the proper conversion tool.
Comments
Post a Comment