Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@TravelTrader

This comment has been minimized.

Copy link

@TravelTrader TravelTrader commented Jul 24, 2019

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

This comment has been minimized.

Copy link

@evelaguti evelaguti commented Apr 13, 2020

Thank you for this line <3

@pweinzettel

This comment has been minimized.

Copy link

@pweinzettel pweinzettel commented Aug 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.