Skip to content

Instantly share code, notes, and snippets.

@dylan
Last active August 29, 2015 13:57
Show Gist options
  • Save dylan/9420056 to your computer and use it in GitHub Desktop.
Save dylan/9420056 to your computer and use it in GitHub Desktop.
#For use with automator and sox
process () {
/usr/local/bin/sox "$1" "$1:r.wav"
}
for x; do
if [ -d $x ]; then
FILES=($x/*.(aif|mp3|ogg|m4a|flac))
for file in $FILES; do
process $file
done
else
process $x
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment