Last active
February 10, 2022 18:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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