UberStudent Forums

Recursively convert all .svgz to .svg
Page 1 of 1

Author:  Stephen Ewen [ Mon Sep 28, 2015 4:41 am ]
Post subject:  Recursively convert all .svgz to .svg

I've been unable to find a simple method anywhere online for recursively converting all .svgz files in a directory tree, so I thought I'd post one here for Google searchers.


find . -name "*.svgz" -exec rename 's/\.svgz$/\.svg.gz/i' {} \;

sleep 1

find ./ -name "*.gz" | xargs gunzip

Simply create an executable script, say, convert.bash, with the above, and then place it in the top-level directory of your .svgz files and execute it from the command line. Done. :geek:

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group