;doc: csv: expand help on other separator characters
[ci skip]
This commit is contained in:
parent
f099fb558e
commit
2825a06e8e
@ -637,13 +637,20 @@ When CSV values are enclosed in quotes, note:
|
|||||||
|
|
||||||
## Other separator characters
|
## Other separator characters
|
||||||
|
|
||||||
With the `--separator 'CHAR'` option (experimental), hledger will expect the
|
You can use the `--separator 'CHAR'` command line option
|
||||||
separator to be CHAR instead of a comma. Ie it will read other
|
(experimental) to read other kinds of character-separated data.
|
||||||
"Character Separated Values" formats, such as TSV (Tab Separated Values).
|
Eg to read SSV (Semicolon Separated Values), use:
|
||||||
Note: on the command line, use a real tab character in quotes, not \t. Eg:
|
```shell
|
||||||
|
$ hledger -f foo.tsv --separator ';' print
|
||||||
|
```
|
||||||
|
Note the semicolon is quoted because it's a
|
||||||
|
[special shell character](hledger.html#special-characters-in-arguments-and-queries).
|
||||||
|
|
||||||
|
To read TSV (Tab Separated Values), use:
|
||||||
```shell
|
```shell
|
||||||
$ hledger -f foo.tsv --separator ' ' print
|
$ hledger -f foo.tsv --separator ' ' print
|
||||||
```
|
```
|
||||||
|
Note, that's a real tab character in quotes, not `\t`.
|
||||||
|
|
||||||
## Reading multiple CSV files
|
## Reading multiple CSV files
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user