File: xls2csv.1

package info (click to toggle)
catdoc 0.91.4-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 900 kB
  • ctags: 373
  • sloc: ansic: 2,142; sh: 350; tcl: 247; makefile: 182
file content (72 lines) | stat: -rw-r--r-- 1,871 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
.TH xls2csv 1  "Version 0.91" "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 " [ -xl ] 
.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 \xNNNN, 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 -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 below and should have 
.B .txt
extension  and reside in 
.B catdoc library directory (normally /usr/local/lib/catdoc).
.TP 8
.BI -d charset
- specifies destination charset name. Charset file has format described in
CHARACTER SETS section of 
.BR catdoc (1)
manual
.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.
.SH BUGS
Date cells are not recognized and printed as floating point number of days since
1-01-1900. Probably many others.
.SH "SEE ALSO"

.BR cat (1),
.BR catdoc (1),
.BR strings (1),
.BR utf (4),
.BR unicode (7)

.SH AUTHOR

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