Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby -Ku
- require 'rbsh/commands/find'
- $dir = "/home/babusha/Загрузки/Nautilus Pompilius/Первые издания"
- Dir.chdir $dir
- find(%w[-type f]).each do |m4a|
- next if not m4a =~ /.m4a/
- wav = m4a.gsub(/.m4a/,'.wav')
- puts "Converting #{m4a} => #{wav}"
- system "mplayer -ao pcm:file='#{wav}' '#{m4a}'"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement