18 lines
247 B
Bash
18 lines
247 B
Bash
#!/bin/bash
|
|
|
|
mkdir test
|
|
mkdir ../markdown
|
|
|
|
libreoffice --headless --convert-to odt ../policies/*.fodt --outdir test
|
|
|
|
for file in test/*.odt; do
|
|
filename=$(basename "$file" .odt)
|
|
pandoc "$file" -o "../markdown/$filename.md"
|
|
done
|
|
|
|
rm -rf test
|
|
|
|
|
|
|
|
|