files:
$ ls
a.md
b.md
c.md
d.md
e.md
Command: pandoc file.md -f markdown file.pdf
How would I parallely process two pandoc instances simulatneously? Possibly with xargs
or parallel
.
It would work like
Iteration/ cmd 1 / cmd 2
1 / pandoc a.md -f markdown a.pdf / pandoc b.md -f markdown b.pdf
2 / pandoc c.md -f markdown c.pdf / pandoc d.md -f markdown d.pdf
3 / pandoc e.md -f markdown e.pdf / pandoc f.md -f markdown f.pdf
4 / pandoc g.md -f markdown g.pdf / pandoc h.md -f markdown h.pdf
The files are randomly named.