diff --git a/scripts/show_website_category.sh b/scripts/show_website_category.sh new file mode 100755 index 0000000..7f4252c --- /dev/null +++ b/scripts/show_website_category.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +OBJ=$(cat schema.json|jq -r ".properties.category.enum[]"|gum choose) + +mdq -c file.title:Title -c website:URL -c file.path:Path -f "{\"category\": { \"\$regex\": \"^$OBJ\"}, \"obj\": \"website\"}" . diff --git a/scripts/show_websites.sh b/scripts/show_websites.sh new file mode 100755 index 0000000..2263eff --- /dev/null +++ b/scripts/show_websites.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +mdq -c file.title:Title -c website:URL -c obj:Type -c file.path:Path -f '{"website": {"$exists": true}}' .