Skip to content

Instantly share code, notes, and snippets.

@haqu
haqu / rmultirename
Created May 28, 2009 15:47 — forked from vrybas/rmultirename.rb
mass rename
#!/usr/bin/env ruby
def show_usage
puts "Usage: #{$0} [PATTERN] [REPLACEMENT]"
puts "Example: #{$0} htm html"
exit
end
pattern = ARGV[0] || show_usage
replace = ARGV[1] || show_usage