From 82fea68b67e7ddd4d1e7cfde598dc33fbfeb6255 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 2 May 2024 15:55:47 +0200 Subject: [PATCH] add obj type script --- scripts/show_obj_type.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/show_obj_type.sh diff --git a/scripts/show_obj_type.sh b/scripts/show_obj_type.sh new file mode 100755 index 0000000..a302e6e --- /dev/null +++ b/scripts/show_obj_type.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +OBJ=$(cat schema.json|jq -r ".properties.obj.enum[]"|gum choose) + +mdq -c file.title:Title -c file.path:Path -f "{\"obj\": { \"\$regex\": \"^$OBJ\"}}" .