Skip to content

Instantly share code, notes, and snippets.

@ksu006
Created December 14, 2012 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ksu006/4289340 to your computer and use it in GitHub Desktop.
Save ksu006/4289340 to your computer and use it in GitHub Desktop.
Script to convert .flac audio files into 320kbps .mp3 files (need flac and lame installed)
#!/bin/sh
for file in *.flac; do flac -cd "$file" | lame -h -b 320 - "${file%.flac}.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment