Skip to content

Instantly share code, notes, and snippets.

@DomY-Dom
Created March 2, 2013 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DomY-Dom/5073629 to your computer and use it in GitHub Desktop.
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 ;)
#!/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