1 2 3 4 5 6 7 8 9
#!/bin/sh cd ${0%/*} # go to project root set -xe for i in files/file*.ppm do pnmtopng "$i" >> "${i%.*}.png" done