Created
March 29, 2022 16:03
-
-
Save aclips/e491561fdb1945f2cfa4b47853f1c272 to your computer and use it in GitHub Desktop.
wav to mp3 converter using lame
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
#!/bin/bash | |
find . -iname "*.wav"|while read fname; do | |
converted_name=${fname/.wav/.mp3} | |
if ! [ -f "$converted_name" ]; then | |
echo "does not exist [$converted_name]" | |
lame "$fname" | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment