Updating 'pandoc' tutorial

This commit is contained in:
Jose 2022-09-04 08:15:49 -03:00
parent 9a51e0290c
commit 3f623da9d2
1 changed files with 7 additions and 1 deletions

View File

@ -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