1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#! /bin/sh for F in *.svg do for S in "16" "22" "24" "32" "48" do SIZE="$S"x"$S" D=$(echo $F | sed -e "s/scalable/$SIZE/g" | sed -e "s/.svg/.png/") if [ ! -e $D ] then inkscape --export-png=$D -w $S -h $S $F fi done done