Created
November 3, 2012 05:16
-
-
Save pepelsbey/4006131 to your computer and use it in GitHub Desktop.
SVG to SVGZ and back
This file contains hidden or 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
# Functions | |
svgz() { | |
gzip $1 -S z | |
} | |
svg() { | |
file=$1 | |
name=${file%.*} | |
mv ${file} ${name}.svg.gz && gunzip ${name}.svg.gz | |
} | |
# Aliases | |
alias svgz=svgz | |
alias svg=svg |
А зачем алиас svgz=svgz
?
Тут алиасы вообще не нужны :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
svgz picture.svg
now gives youpicture.svgz
andsvg picture.svgz
gives youpicture.svg