in reply to CSV to Excel Converter
I don't want to take away the fun you have in creating utilities like this, but have you taken the time to look at the csv2xls utility that I ship with Text-CSV_XS in the examples folder?
usage: csv2xls -s <sep> -q <quot> -w <width> -d <dtfmt> -o <xls> file.csv -s <sep> use <sep> as seperator char. Auto-detect, default = ',' The string "tab" is allowed. -e <esc> use <sep> as seperator char. Auto-detect, default = ',' The string "undef" is allowed. -q <quot> use <quot> as quotation char. Default = '"' The string "undef" will disable quotation. -w <width> use <width> as default minimum column width (4) -o <xls> write output to file named <xls>, defaults to input file name with .csv replaced with .xls if from standard input, defaults to csv2xls.xls -F allow formula's. Otherwise fields starting with an equal sign are forced to string -f force usage of <xls> if already exists (unlink before use) -d <dtfmt> use <dtfmt> as date formats. Default = 'dd-mm-yyyy' -D cols only convert dates in columns <cols>. Default is everywhere. -u CSV is UTF8 -v <lvl> verbosity (default = 1)
It is a script I already use in real-life for ages now. It is a working script that already deals with big files
Updated on 2013-04-23 to show most recent usage and remove restriction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CSV to Excel Converter
by eric256 (Parson) on Sep 21, 2007 at 16:43 UTC | |
by Tux (Canon) on Sep 21, 2007 at 18:39 UTC | |
by runrig (Abbot) on Sep 21, 2007 at 18:50 UTC | |
by Anonymous Monk on Jan 13, 2009 at 05:07 UTC | |
by holli (Abbot) on Jan 13, 2009 at 05:15 UTC | |
by Anonymous Monk on Jan 29, 2009 at 19:16 UTC |