add scripts
This commit is contained in:
parent
b1a1330d80
commit
3dedf37c41
2 changed files with 8 additions and 0 deletions
5
scripts/show_website_category.sh
Executable file
5
scripts/show_website_category.sh
Executable 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
3
scripts/show_websites.sh
Executable 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}}' .
|
Loading…
Reference in a new issue