Created
March 2, 2013 22:50
-
-
Save DomY-Dom/5073629 to your computer and use it in GitHub Desktop.
Script that converts all audio files in the directory you're in from one format to another and deletes the original files, redefine SUFF & suff if needed ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUFF=m4a | |
suff=mp3 | |
for i in *.$SUFF | |
do | |
ffmpeg -i "$i" "${i%.$SUFF}".$suff | |
#Optional: | |
rm -f "$i" | |
done | |
#DomY-Dom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment