First Draft of rtouch in Ruby
March 8th, 2009 by pjungwir
Okay, here is the same thing, but in Ruby. Still no option-passing:
#!/usr/bin/ruby
require 'find'
require 'FileUtils'
dirs = (ARGV.length > 0 ? ARGV : ["."])
dirs.each do |dir|
Find.find(dir) do |path|
FileUtils.touch path
end
end
Posted in Uncategorized