Skip to content

Instantly share code, notes, and snippets.

@gkthiruvathukal
Last active April 26, 2021 18:11
Show Gist options
  • Save gkthiruvathukal/87f27eab75430af4be27f6b149fb8cb4 to your computer and use it in GitHub Desktop.
Save gkthiruvathukal/87f27eab75430af4be27f6b149fb8cb4 to your computer and use it in GitHub Desktop.
for y in *.yaml; do
yq eval .note $y > $(basename $y .yaml).txt
done
for y in *.yaml; do
zettel --file $y --load-document $(basename $y .yaml).txt --delete-note --save $(basename $y .yaml).md
done
@gkthiruvathukal
Copy link
Author

Make sure to snap install yq or brew install yq first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment