Skip to content

Instantly share code, notes, and snippets.

@rmw
Created October 6, 2014 18:30
Show Gist options
  • Save rmw/7a7361492a2df97dcdf2 to your computer and use it in GitHub Desktop.
Save rmw/7a7361492a2df97dcdf2 to your computer and use it in GitHub Desktop.
Quick & dirty file renaming
Dir["./*"].each_with_index { |f, i| File.rename(f, "nyc-expertise-#{i}.png") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment