1 2 3 4 5 6 7
#!/bin/bash for config in "$HOME"/.Slic3r/*/config.ini; do opts+=(--load "$config") done perl "$HOME"/git/Slic3r/slic3r.pl "${opts[@]}" "$@"