Skip to content

Instantly share code, notes, and snippets.

@neongreen
Created August 8, 2020 02:30
Show Gist options
  • Save neongreen/7bd9105df00bfe341833a1edc98fc6c6 to your computer and use it in GitHub Desktop.
Save neongreen/7bd9105df00bfe341833a1edc98fc6c6 to your computer and use it in GitHub Desktop.
find . -name "*.html" -type f -exec sh -c \
'dir=`dirname "$1"`; name=`basename "$1"`; (cd "$dir" && pandoc "$name" --self-contained -o "$name")' x {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment