Created
August 25, 2014 11:09
-
-
Save bwesterb/cd32cfb563e9dff4c569 to your computer and use it in GitHub Desktop.
voorbeeld voor J
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir.entries('.').each do |old| | |
next if old.end_with? '.rb' | |
next if ['.', '..'].include? old | |
new = old.split('-', 2)[0].strip + '.flac' | |
File.rename(old, new) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment