Skip to content

Instantly share code, notes, and snippets.

@sagax
Created March 9, 2016 05:05
Show Gist options
  • Save sagax/5510073ba0ce69ccb44f to your computer and use it in GitHub Desktop.
Save sagax/5510073ba0ce69ccb44f to your computer and use it in GitHub Desktop.
converting some file to mp3 in loop
for i in *
do
number=$(echo "$i" | awk '{print $4}' | awk -F- '{print $1}')
name="some_"
ffmpeg -y -i "$i" -ab 320K -ar 44100 -ac 2 -acodec mp3 $name_$number.mp3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment