#!/bin/bash # recurcively apply replaygain # 'find -type d -exec /home/ak/docs/scripts/mpcrg "{}" \;' cd "$*" && \ if [ "`find -maxdepth 1 -type f -iname \*.mpc`" ]; then replaygain --smart --auto *.mpc fi