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\"}}" .