File: xls2csv.1

package info (click to toggle)
catdoc 0.93.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,048 kB
  • ctags: 471
  • sloc: ansic: 3,177; sh: 350; tcl: 262; makefile: 182
file content (93 lines) | stat: -rw-r--r-- 2,419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.TH xls2csv 1  "Version 0.93.4" "MS-Word reader"
.SH NAME
xls2csv \- reads MS-Excel file and puts its content as comma-separated data on standard output
.SH SYNOPSIS

.BR "xls2csv " [ -xlV ] 
.RB [ -f 
.IR " format " ] 
.RB [ -b
.IR " string " ]
.RB [ -s 
.IR " charset " ] 
.RB [ -d 
.IR " charset " ] 
.RB [-q 
.IR " number " ] 
.RB [ -c 
.IR " char" ] 
.I files

.SH DESCRIPTION

.B xls2csv 
reads MS-Excel spreadsheet and dumps its content as comma-separated
values to stdout. Numbers are printed without delimiters, strings are
enclosed in the double quotes. Double-quotes inside string are doubled.
.SH "OPTIONS"
.TP 8
.BR -x
print unknown unicode chars as \exNNNN, rather than as question marks
.TP 8
.BR -l
list known charsets and exit successfully
.TP 8
.BI -c char
cell separator char. By default - comma.
.TP 8
.BI -b string
sheet break string. This string (by default - formfeed) would be output
at the end of each workbook page.
.TP 9
.BI -g number
number of decimal digits in the numbers. By default maximal double
precision (system-dependent macro DBL_DIG) is used.
.TP 8
.BI -q number
set quote mode. In quote mode 0 cell contents is never quoted.
In quote mode 1 only strings which contain spaces, double quotes or
commas are quoted.
In quote mode 2 (default) all cells with type string are quoted.
In quote mode 3 all cellsa are quoted.

.TP 8
.BI -d charset`
- specifies destination charset name. Charset file has format described in
CHARACTER SETS section of 
.BR catdoc (1)
manual page. By default, current locale
charset would be used if langinfo support was enabled at the compile time.

.TP 8
.BI -s charset
- specifies source charset. Typically, Excel files have CODE PAGE
record, which denotes input charset, but for some reason you may wish to 
override it.
.TP 8
.BI -f format
- specifies date/time format to use for output of all Excel date and
time  values.  If this option is not specified, format, specified in 
the spreadsheet is used. On POSIX system any format, allowed by 
.BR strftime (3)
can be used as value of this option. Under MS-DOS 
.B xls2csv
implements limited set of 
.B strftime 
formats, namely 
.BR m ", " d ", " y ", " Y ", " b ", " l ", " p ", " H ", " M ", " S .

.TP 8
.B -V
outputs version number

.SH "SEE ALSO"

.BR cat (1),
.BR catdoc (1),
.BR strings (1),
.BR utf8 (7),
.BR unicode (7)

.SH AUTHOR

V.B.Wagner <vitus@ice.ru>, based on biffview by David Rysdam