#!/bin/bash find -type f -iregex ".*-.*\.svg$" | while read -r svg_file; do filename=$(basename -s .svg "$svg_file") png_file="$filename.png" inkscape --export-dpi=1200 --export-background=BLACK "$svg_file" -o "$png_file" done