Skip to content

Instantly share code, notes, and snippets.

@alister
Created March 29, 2012 10:52
Show Gist options
  • Save alister/2235824 to your computer and use it in GitHub Desktop.
Save alister/2235824 to your computer and use it in GitHub Desktop.
A simple Rake task to delete backup files
# A simple Rake task to delete backup files
task :clean do
Dir['*~','**/*~'].each {|fn| rm fn rescue nil}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment