Write a command-line tool /usr/local/bin/ledgerfmt that reads a ledger file from a specified path and prints…
Write a command-line tool /usr/local/bin/ledgerfmt that reads a ledger file from a specified path and prints…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - A UTF-8 text file where each non-empty, non-comment line is a transaction. - Comment lines…
The task
Input format: - A UTF-8 text file where each non-empty, non-comment line is a transaction. - Comment lines start with `#` and are ignored. - A transaction line has the format: `DATE,ACCOUNT,AMOUNT` - DATE is `YYYY-MM-DD` - ACCOUNT is a non-empty string that may contain any printable ASCII except comma (0x2C) and is…
Part of ai-and/termgrade-environments.