#!/usr/bin/env sh for File in *.iso do [ -f "$File" ] || continue chdman createcd -i "$File" -o "${File%.iso}.chd" rm -v "$File" done