Skip to content

Instantly share code, notes, and snippets.

View brantb's full-sized avatar

Brant Bobby brantb

View GitHub Profile
@brantb
brantb / flac2mp3
Created March 18, 2011 22:05 — forked from mxcl/flac2mp3.md
#!/usr/bin/ruby
# http://gist.github.com/gists/876936
filename=ARGV[0]
abort "Usage: flac2mp3 FLACFILE" if filename.nil?
`metaflac --export-tags-to=- "#{filename}"`.each_line do |s|
v=s.strip.split '=', 2
v[0].upcase!
v[1].gsub! '"', '\"'