Ruby makes me smile
Posted by Michael Fri, 06 Jul 2007 11:21:25 GMT
It’s not often that computer work makes me smile. I needed to download 6 files today. This is what made me smile:
[1,2,3,4,5,6].each do |number|
system("wget http://mirror.stanford.edu/yum/\
pub/centos/5.0/isos/i386/\
CentOS-5.0-i386-bin-#{number}of6.iso")
end
Ahh. Ruby, where the simple things are simple.
