"Argument list too long"
Posted by root Wed, 09 Jan 2008 03:08:00 GMT
Given that linuxjournal has some good points, there is no need for another solution, except in the cases when you operate on different machine. Here is oneliner solution:
irb console #remove Opera cached filestoo_many_files = "~/.opera/cache4/"
Dir.new(too_many_files_dir).each do |f|
File.file?(f) && File.unlink(f)
end