Skip to content

Instantly share code, notes, and snippets.

@championofblocks
Last active March 18, 2024 20:08
Show Gist options
  • Star 62 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
@TravelTrader
Copy link

This line helped a lot today! Thank you.
Do you have another line for mounting the cdrom and copy the files to the current folder? :D Or you can give me a hint. I only find possibilities by using "sudo", root.

@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