From: Pierre-Charles David Date: 2007-09-18T02:40:12+09:00 Subject: Re: Run script against every file in a directory 2007/9/16, Chris Gallagher : > Hi, > > I'm currently tryin to implement a ruby script which will run through a > directory of javascript files and run jsmin.rb against each of them as a > part of my build script. im running into a number of silly issues so im > just wondering if theres anyone out there thats done this kind of thing? How about this: Dir["**/*.js"].each { |js| system("ruby jsmin.rb #{js}") } -- http://pcdavid.net/