mirror of
https://github.com/optilude/xlsx-template.git
synced 2026-07-02 00:17:39 +08:00
25 lines
358 B
Bash
Executable File
25 lines
358 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Helper script to extract test files to make them easier to visually inspect
|
|
|
|
mkdir extract
|
|
|
|
for x in *.xlsx ; do
|
|
|
|
rm -r extract/$x
|
|
mkdir extract/$x
|
|
cd extract/$x
|
|
unzip ../../$x
|
|
|
|
for f in $(find . -name '*.xml') ; do
|
|
|
|
mv $f $f.old
|
|
xmllint --format $f.old > $f
|
|
rm $f.old
|
|
|
|
done
|
|
|
|
cd ../..
|
|
|
|
done
|