#!/bin/bash ARCHIVEDIR="/home/monitor-archive" CONVBIN="/root/bin/file-convert-wav-to-mp3" find $ARCHIVEDIR -iname '*.wav' -exec $CONVBIN "{}" \;