From cd153113b4df03117a0f9d57c95b65b15aaeeefc Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 7 Apr 2024 16:22:40 +0200 Subject: [PATCH] feat: use sed to write reports to hard-coded line in README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81bb0c8..5526e5e 100644 --- a/README.md +++ b/README.md @@ -48,5 +48,6 @@ hledger-web --file ./finances.hledger Writing a HTML table to the README ``` -hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly --row-total >> README.md +hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly --row-total | sed -i '8r /dev/stdin' README.md +sed -i '14,17d' README.md ```