diff --git a/opt.sh b/opt.sh new file mode 100644 index 0000000..133512c --- /dev/null +++ b/opt.sh @@ -0,0 +1,11 @@ +source ./common.sh + +if [[ "${1}" == "" ]]; then + echo "Please provide a directory as the first argument" + exit 1 +fi + +for svg in "${1}"*.svg ; do + mv "${svg}" "${svg}.unopt.svg" + svgsort "${svg}.unopt.svg" "${svg}" +done \ No newline at end of file