From 76218c5af4723e31e59b4e0887bc953ba7974cdc Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 2 Sep 2022 17:58:09 -0300 Subject: [PATCH] Updating pandoc tutorial --- tutorial/pandoc.org | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tutorial/pandoc.org b/tutorial/pandoc.org index 597fc4e..028ddb5 100644 --- a/tutorial/pandoc.org +++ b/tutorial/pandoc.org @@ -7,12 +7,20 @@ output to a file. In the example a file "foo" is converted from ~odt~ to ~org~ -#+begin_src bash +#+begin_example bash pandoc -s -o foo.org foo.odt -#+end_src +#+end_example Check the manual for more information: #+begin_example bash man pandoc -#+end_src +#+end_example + +** Convert multiple files using 'xarg' + +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 +#+end_example