#!/bin/bash # run in the "scalable folder" # create 256 and 2048 folders and then copy the existing folder structure find . -type d -print0 | parallel -0 mkdir ./256/{/.} ./2048/{/.} # convert svgs to png find -name "*.svg" | parallel inkscape {} --export-height=2048 --export-png=./2048/{.}.png ';' inkscape {} --export-height=256 --export-png=./256/{.}.png # in the 256 folder find all pngs in additonal- folders and move them into neomouse-additional cd ./256 mkdir neomouse-additional find additional* -name "*.png" | parallel -m mv {} neomouse-additional rm -r additional-*