Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created May 10, 2010 17:25
Show Gist options
  • Select an option

  • Save rboyd/396276 to your computer and use it in GitHub Desktop.

Select an option

Save rboyd/396276 to your computer and use it in GitHub Desktop.
`ls`.split("\n").each { |file|
puts file if file.include? 'gif'
amt = /(\d+).*\.gif/.match(file)[1]
`mv #{amt}top.gif chip#{amt}.gif`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment