memoir/docs/cli/convert-documents.md

15 lines
259 B
Markdown
Raw Normal View History

2023-02-19 12:34:28 +00:00
---
tags:
- pandoc
- find
- xargs
---
# Convert documents
```bash
find . -name "*.odt" | xargs -I % pandoc % -o %.md
```
You can add the `-p` flag to `xargs` to confirm before executing, useful for testing if what your are doing is actually correct.