add scripts

This commit is contained in:
JMARyA 2024-09-10 10:30:19 +02:00
parent b1a1330d80
commit 3dedf37c41
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 8 additions and 0 deletions

View file

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

3
scripts/show_websites.sh Executable file
View file

@ -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}}' .