Skip to content

Instantly share code, notes, and snippets.

@championofblocks
Last active May 1, 2024 12:49
Show Gist options
  • Star 63 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save championofblocks/3982727 to your computer and use it in GitHub Desktop.
Save championofblocks/3982727 to your computer and use it in GitHub Desktop.
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@evelaguti
Copy link

Thank you for this line <3

@pweinzettel
Copy link

for i in *.wav; do test -f "${i%.wav}.mp3" || lame -b 320 -h "${i}" "${i%.wav}.mp3"; done

@petercordia
Copy link

This worked great 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment