You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,7 +369,7 @@ Arguments:
369
369
-`--case-insensitive` (optional, shorthand `-i`) Use this flag to specify a case insensitive match for replacement rather than the default case sensitive match.
370
370
-`--repl` String to use for replacement.
371
371
372
-
Note that if you have a capture group in the `--regex` argument you can reference that in the replacement argument using `"\$1"` for the first capture group, `"\$2"` for the second capture group, etc.
372
+
Note that if you have a capture group in the `--regex` argument you can reference that in the replacement argument using `"\$1"` for the first capture group, `"\$2"` for the second capture group, etc. In Windows cmd, the `\` escape is unnecessary, and the capture group references should be specifed as `"$1"` and `"$2"`.
373
373
374
374
### sample
375
375
@@ -428,13 +428,14 @@ Split a CSV into multiple files.
428
428
Usage:
429
429
430
430
```shell
431
-
gocsv split --max-rows N [--filename-base FILENAME] FILE
431
+
gocsv split --max-rows N [--filename-base FILENAME] [--width N] FILE
432
432
```
433
433
434
434
Arguments:
435
435
436
436
- `--max-rows` Maximum number of rows per final CSV.
437
437
- `--filename-base` (optional) Prefix of the resulting files. The file outputs will be appended with `"-1.csv"`,`"-2.csv"`, etc. If not specified, the base filename will be the same as the base of the input filename, unless the input is specified by standard input. If so, then the base filename will be `out`.
438
+
- `--width` (optional) Minimum width of the numeric suffix, zero-padded if necessary. For example, `--width 3` results in filenames like `"file-001.csv"`, `"file-002.csv"`, etc.
438
439
439
440
### sql
440
441
@@ -568,15 +569,15 @@ The command defaults to writing all converted sheets to a directory with the sam
- `--list-sheets` (optional) List the sheets, by index and name, in the XLSX file.
578
579
- `--sheet` (optional) Specify a single sheet, by index or name, to convert and write to stdout.
579
-
- `--dirname` (optional) Specify the name of the directory for the converted sheets. The command defaults to the same name as `FILE`, minus the extension.
580
+
- `--dirname` (optional) Specify the name of the directory for the converted sheets. The command defaults to the same name as `FILE`, minus the extension.
580
581
581
582
Only one option can be used; multiple options cannot be combined.
0 commit comments