Skip to content

Instantly share code, notes, and snippets.

@ijortengab
Created December 10, 2025 21:43
Show Gist options
  • Select an option

  • Save ijortengab/ea5fb71c383f9eb5d1af0e71f1e13210 to your computer and use it in GitHub Desktop.

Select an option

Save ijortengab/ea5fb71c383f9eb5d1af0e71f1e13210 to your computer and use it in GitHub Desktop.
while IFS= read -r line; do sed -i -E ':a;N;$!ba;s,#\ *draft:\ *true\n,,g' "$line"; done <<< `find -type f -iname '*.md'`
while IFS= read -r line; do sed -i -E ':a;N;$!ba;s,---\n---\n,,g' "$line"; done <<< `find -type f -iname '*.md'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment