Skip to content

Instantly share code, notes, and snippets.

@FernandoEscher
Created September 9, 2012 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FernandoEscher/3682110 to your computer and use it in GitHub Desktop.
Save FernandoEscher/3682110 to your computer and use it in GitHub Desktop.
Convert recursively all the ALAC files to WAV
MAIN_DIR="parent/dir/here/" && for dir in "$MAIN_DIR"*/; do cd "$dir"; for f in *.m4a; do alac-decoder -v -f "$(basename "$f" .m4a).wav" "$f"; done; cd ..; done; && find "$MAIN_DIR" -name "*.m4a" -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment