#!/bin/bash handle () { scour -i "$1" -o "output${1#src}" \ --enable-viewboxing \ --enable-id-stripping \ --enable-comment-stripping \ --remove-descriptive-elements \ --strip-xml-prolog \ --shorten-ids } export -f handle mkdir -p output find "src" \ -type f \ -name "*.svg" \ -print0 | parallel -0 handle {}