sorttrans-cli(1)

sorttrans-cli1

Sorts a ledger file in chronological order

Usage

sorttrans-cli [options]

Options

-y

Write back the file immediately, without showing the differences.

-h,

--help Show help message and exit.

--file FILE

Specify path to ledger file to work with.

--price-db PRICEDB

Specify path to ledger price database to work with.

--debug

Turn on debugging output, may be useful for developers.

Overview

sorttrans-cli is a text program for sorting a ledger in chronological order.

The program loads the ledger file and sorts the transactions in memory. Then, depending on the command-line options, it either writes the sorted file back, or invokes meld with the original and sorted version shown, for interactive editing.

The program must be supplied with location of the ledger file to work with. If not supplied using the command-line option --file, the location of the file is determined using the following mechanisms, in this order. The first mechanism which yields a result, wins.

Environment

The following environment variable is recognized by this program:

LEDGER_FILE

Path to ledger file to work with.

Files

The config file for ledger(1), namely file .ledgerrc in user's home directory is scanned looking for the following option.

--file FILE

Path to ledger file to work with.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From ledgerhelpers 0.3.10-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.