Created
May 11, 2019 14:15
-
-
Save ziggahunhow/71e25bcea8053b95548cc85ed523ad72 to your computer and use it in GitHub Desktop.
Get Images from all pptx files in a directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#change ./test/* to your desired path | |
for file in ./test/*; | |
do | |
mv "$file" "${file%.pptx}.zip" | |
unzip "${file%.pptx}.zip" | |
cp -rf ppt/media "${file%.pptx}" && | |
rm -rf _rels/ docProps ppt | |
rm "[Content_Types].xml" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make sure to make the file executable then run the file