Skip to content

Instantly share code, notes, and snippets.

@dmcclory
Created October 18, 2012 03:26
Show Gist options
  • Save dmcclory/3909704 to your computer and use it in GitHub Desktop.
Save dmcclory/3909704 to your computer and use it in GitHub Desktop.
my remove backups rake task
task :rmbak do
Dir["**/**~"].each do |f| ## "**/**" selects everything
puts "removing #{f}" ## works in ruby, but isn't recursive on command line
FileUtils.rm(f)
end
puts "rmbak: complete"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment