Skip to content

Instantly share code, notes, and snippets.

@aclips
Created March 29, 2022 16:03
Show Gist options
  • Save aclips/e491561fdb1945f2cfa4b47853f1c272 to your computer and use it in GitHub Desktop.
Save aclips/e491561fdb1945f2cfa4b47853f1c272 to your computer and use it in GitHub Desktop.
wav to mp3 converter using lame
#!/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