Sha256: ba70470b63114e7154f2535885a77a68e46866ada2581a6312223ce41a1ae602
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
#!/usr/bin/env ruby name = ARGV[0] unless name puts "file path required" exit -1 end matches = [] paths = ENV['ROLL_PATH'].split(/[:;]/) paths.each do |path| matches = Dir.glob(File.join(path,'{*,*/*,*/*/*,*/*/*/*}',name)) # searches up to four layers deep. end matches = matches.select{ |f| File.executable?(f) } matches = matches.sort{ |a,b| File.mtime(b) <=> File.mtime(a) } matches.each do |f| puts "#{File.mtime(f)} #{f}" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.3.0 | bin/ratch-find |
ratch-0.4.0 | bin/ratch-find |
ratch-0.4.1 | bin/ratch-find |