Skip to content

Commit

Permalink
doc: export example
Browse files Browse the repository at this point in the history
  • Loading branch information
howeyc committed Jun 2, 2023
1 parent 03ed8a0 commit fedec05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ledger/book/src/02_Export.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ We can export transactions in CSV format.

## Example

`$ ledger -f ledger.dat export > transactions.csv`
Run `ledger -f ledger.dat export`

`$ ledger -f ledger.dat export`

By default columns are comma separated. To use another delimiter use the `--delimiter` flag e.g.

`$ ledger -f ledger.dat --delimiter $'\t' export > transactions.csv`
`ledger -f ledger.dat --delimiter $'\t' export`

`$'\t'` will produce a literal tab character in Bash shell environment.

`$ ledger -f ledger.dat --delimiter ' ' export`

0 comments on commit fedec05

Please sign in to comment.