#!/bin/sh set -xe for i in files/file*.ppm do pnmtopng "$i" >> "${i%.*}.png" done