Skip to content

Instantly share code, notes, and snippets.

@khiet
khiet / gbgrep
Last active August 29, 2015 13:57 — forked from nas/gbgrep
#!/usr/local/bin/ruby
grep = `git grep -n #{ARGV[0]}`
puts "\n-----------------------------------------------------------"
puts "GREP RESULT"
puts '-----------------------------------------------------------'
puts grep
files = grep.scan /.*\:\d+/