diff options
-rwxr-xr-x | home/.local/bin/masto | 12 | ||||
-rw-r--r-- | txt/books.txt | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/home/.local/bin/masto b/home/.local/bin/masto new file mode 100755 index 00000000..9fdbfdf1 --- /dev/null +++ b/home/.local/bin/masto @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +outbox=$1 +pattern=$2 + +jq -r " + .orderedItems[] | + select(.object | type == \"object\") | .object | + select(.content | test(\"${pattern}\")) | + \"\\(.content)\\n\\(.url)\\n\" +" "$outbox" | dehtml diff --git a/txt/books.txt b/txt/books.txt index d7a504d0..ec739490 100644 --- a/txt/books.txt +++ b/txt/books.txt @@ -1,5 +1,6 @@ [ 2025 ] + 2. ★★☆ Nicola Griffith, Spear 1. ★★☆ Ruthanna Emrys, A Half-Built Garden [ 2024 ] |