Reputation: 995
is there anyway to save csv file as an excel files using shell scripts/command prompt?
I know that I can do it manually via the save as in the excel gui, but how do I make it an automated process?
Thanks!
Upvotes: 3
Views: 5426
Reputation: 8587
Take a look at http://www.perlmonks.org/?node_id=635437 You can use Perl Modules to parse and write Excel spread sheets.
You will need:
https://metacpan.org/pod/Spreadsheet::WriteExcel
and
https://metacpan.org/pod/Text::CSV::Simple
or
sudo apt-get install libspreadsheet-writeexcel-perl libtext-csv-perl
Then that script should work for you -
Upvotes: 0
Reputation: 891
If you don't mind doing it from within Excel, you can probably do something with VBA which will process multiple files at the same time.
Rather like: http://www.go4expert.com/forums/convert-xls-csv-using-vbscript-t18188/ but changing the saveas type.
Upvotes: 0