Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Last active February 10, 2022 18:23
Show Gist options
  • Save atomicstack/ed0da49a189001fd1c14079b3fc1efcd to your computer and use it in GitHub Desktop.
Save atomicstack/ed0da49a189001fd1c14079b3fc1efcd to your computer and use it in GitHub Desktop.
(zsh) shell one-liner to walk a directory tree and use lame to decode all the mp3s within
find $PWD -type d | ( while read d; do pushd $d; for mp3_filename in *.mp3(N); do lame --quiet --decode "$mp3_filename" && echo $PWD/$(basename "$PWD/$
mp3_filename" .mp3).wav | tee -a converted.txt; done; popd; done ) | ts '[%F %T]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment