Revision: 1005
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 28, 2006 06:27 by bbuckley
Initial Code
#!/usr/bin/env ruby # -*- ruby -*- exts = ['.rb'] if ARGV[0] =~ /^\.[a-zA-Z0-9]+$/ exts = [] while ARGV[0] =~ /^\.[a-zA-Z0-9]+$/ exts << ARGV.shift end end ext = "{" + exts.join(',') + "}" if ARGV.size < 1 puts "Usage: #{File.basename($0)} [.ext ...] pattern ..." exit 1 end require 'rake' FileList["**/*#{ext}"].egrep(Regexp.new(ARGV.join('|')))
Initial URL
http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red
Initial Description
Initial Title
Using Rake as a Library
Initial Tags
rails, ruby
Initial Language
Ruby