Skip to main content

Batch convert files with pandoc

Example:

  • go to folder with all the files inside
  • convert all from html to xwiki markup
  • write new files to ../xwiki
for f in *.html; do pandoc "$f" -f html -t xwiki -o "../xwiki/${f%.html}.xwiki"; done