From 3f623da9d27017c109517bf7c1c0f0ebe66bc6ff Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 4 Sep 2022 08:15:49 -0300 Subject: [PATCH] Updating 'pandoc' tutorial --- tutorial/pandoc.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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