Skip to content

Instantly share code, notes, and snippets.

@xDShot
Created May 8, 2020 11:24
Show Gist options
  • Save xDShot/528b9f41e441cbfaa7734e90328fc906 to your computer and use it in GitHub Desktop.
Save xDShot/528b9f41e441cbfaa7734e90328fc906 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in *.mp3; do
echo $i
bsname=$(basename "$i" .mp3)
echo $bsname
cp "$i" "_tmp.mp3"
ffmpeg -y -i "_tmp.mp3" "_tmp.wav"
rm "_tmp.mp3"
mv "_tmp.wav" "$bsname.wav"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment