16 lines
287 B
Text
16 lines
287 B
Text
|
#!/bin/bash
|
||
|
echo "Running Post-Merge"
|
||
|
dirs=$(find -type d -iname "*.pptx")
|
||
|
for d in $dirs
|
||
|
do
|
||
|
echo "creating Powerpoint for $d"
|
||
|
cd $d
|
||
|
foldername="$(basename $d)"
|
||
|
echo "foldername=$foldername"
|
||
|
filename="${foldername:1}"
|
||
|
echo "filename=$filename"
|
||
|
|
||
|
zip -r ../$filename *
|
||
|
cd ..
|
||
|
done
|