File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ If the Workbook does not exist then it is created.
43
43
examples = `
44
44
Converting a csv to a workbook.
45
45
46
- csv2xlsx -i data.csv MyWorkbook.xlsx 'My worksheet 1'
46
+ %s -i data.csv MyWorkbook.xlsx 'My worksheet 1'
47
47
48
48
This creates a new 'My worksheet 1' in the Excel Workbook
49
49
called 'MyWorkbook.xlsx' with the contents of data.csv.
50
50
51
- cat data.csv | csv2xlsx MyWorkbook.xlsx 'My worksheet 2'
51
+ cat data.csv | %s MyWorkbook.xlsx 'My worksheet 2'
52
52
53
53
This does the same but the contents of data.csv are piped into
54
54
the workbook's 'My worksheet 2' sheet.
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ This will output the number of sheets in the Workbook.
55
55
This will display a list of sheet names, one per line.
56
56
Putting it all together in a shell script.
57
57
58
- xlsx2csv -N MyWorkbook.xlsx | while read SHEET_NAME; do
58
+ %s -N MyWorkbook.xlsx | while read SHEET_NAME; do
59
59
CSV_NAME="${SHEET_NAME// /-}.csv"
60
- xlsx2csv -o "${CSV_NAME}" MyWorkbook.xlsx "${SHEET_NAME}"
60
+ %s -o "${CSV_NAME}" MyWorkbook.xlsx "${SHEET_NAME}"
61
61
done
62
62
`
63
63
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ This will output the title of the sheets in the workbook
56
56
Putting it all together in a shell script and convert all sheets to
57
57
into JSON documents..
58
58
59
- xlsx2json -N MyWorkbook.xlsx | while read SHEET_NAME; do
59
+ %s -N MyWorkbook.xlsx | while read SHEET_NAME; do
60
60
JSON_NAME="${SHEET_NAME// /-}.json"
61
- xlsx2json -o "${JSON_NAME}" MyWorkbook.xlsx "$SHEET_NAME"
61
+ %s -o "${JSON_NAME}" MyWorkbook.xlsx "$SHEET_NAME"
62
62
done
63
63
`
64
64
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import (
34
34
)
35
35
36
36
const (
37
- Version = `v0.0.24-pre `
37
+ Version = `v0.0.24`
38
38
39
39
LicenseText = `
40
40
%s %s
You can’t perform that action at this time.
0 commit comments