Skip to content

Instantly share code, notes, and snippets.

@ono
Created June 12, 2009 01:31
Show Gist options
  • Save ono/128373 to your computer and use it in GitHub Desktop.
Save ono/128373 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
def t2m(target)
command = "./t2m.pl -d #{target}.td >> export.file"
p command
system command
end
"2007".upto("2009") do |y|
"01".upto("12") do |m|
if y.to_i > 2007 || m.to_i>6
t2m "#{y}#{m}" if File.exist?("#{y}#{m}.td2")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment