Automated pandoc bash script for recursively re-formatting files
This was built on a linux system for linux systems, so it probably won't work if you don't run a debian-based linux distro.
-
(prerequisite) Install pandoc
sudo apt install pandoc -
Create a directory and fill it with files that you would like to convert to a different format.
-
Move the
auto_pandoc_driver.shfile into the directory you created previously. -
Make sure the file has execution privilages
sudo chmod u+x auto_pandoc_driver.sh -
Run the bash file
./auto_pandoc_driver.sh -
The converted files will be located in a new directory
./bash_output/
Currently, this only takes Markdown (.md) input files and outputs OpenDocument Text files (.odt).
- Customizable input and output formats
- Ability to specify directory of input files (rather than placing the script in the same directory)
- ODT file output style customization