Skip to content

Instantly share code, notes, and snippets.

@skojaku
Last active November 29, 2022 16:36
Show Gist options
  • Save skojaku/4e1d13eaf90c52ef6f1601a9ed69c6da to your computer and use it in GitHub Desktop.
Save skojaku/4e1d13eaf90c52ef6f1601a9ed69c6da to your computer and use it in GitHub Desktop.
# Remove tags from obsidian notes.
# 1. Move to the root of the vault
# 2. Specify the tag names in the "remove_tags" list
# 3. Run
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
files=$(find . -type f -name "*.md")
removing_tags=()
for tag in ${removing_tags[@]}; do
echo $tag
sed -i ".original" -e "s/#"$tag"//" $files
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment