Skip to content

Instantly share code, notes, and snippets.

@fishnibble
Created March 10, 2022 12:37
Show Gist options
  • Save fishnibble/a60905de7ae61625c364daaca33d6071 to your computer and use it in GitHub Desktop.
Save fishnibble/a60905de7ae61625c364daaca33d6071 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script for getting all TODOS in obsidian
notePath="your path here"
output=~/"output path here"
echo "#Global TODOs" > "$output"
grep -hr --exclude-dir=plugins "\bTODO\b:.*" "$notePath" | awk '{print $0,"\n"}' >> "$output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment