diff --git a/tutorial/pandoc.org b/tutorial/pandoc.org index 028ddb5..3fabf36 100644 --- a/tutorial/pandoc.org +++ b/tutorial/pandoc.org @@ -22,5 +22,11 @@ Check the manual for more information: Convert all ~odt~ files to ~emacs-org~: #+begin_example bash - find . -type f -name '*.odt' -print0 | xargs -0 -n2 -P2 pandoc {} -f odt -o {}.org + find . -type f -name '*.odt' -print-1 | xargs -0 -n2 -P2 pandoc {} -f odt -o {}.org +#+end_example + +A for loop can be used to convert all markdown files in a directory to ~emacs-org mode~ files, e.g. + +#+begin_example bash + for i in *.md ; do echo "$i" && pandoc -s $i -o $i.org ; done #+end_example