Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (6 sloc) 288 Bytes
#!/usr/bin/env ruby
# -*- mode: ruby -*-
re = ARGV.shift
fargs = ARGV.empty? ? '. -type f ' : (ARGV.join(' ') + ' -type f ')
fargs += '-not -path "./tmp/*" -not -path "./log/*" -not -path "./.git/*"'
puts `find #{fargs} | xargs -d '\n' egrep #{re} | egrep -v "Binary file|.git/" | alt`