3 ms·
I prefer the much simpler approach of reusing the existing utils with a simple shell script, which is much faster than ack: http://www.pixelbeat.org/scripts/fi
by pixelbeat 14y ago
I prefer the much simpler approach of reusing the existing utils with a simple shell script, which is much faster than ack:
http://www.pixelbeat.org/scripts/findrepo http://www.pixelbeat.org/scripts/findrepo
A quick test on a moderately big repo:
$ time findrepo test '*' | wc -l
158819
real 0m0.532s
$ time ack -a test | wc -l
76526
real 0m8.762s
- petdance 14y agoI'm more than happy to include findrepo on the betterthengrep.com/more-tools page. If you'll make a page for it, or at least have something for newbies to read, I'll add a link. My concern is that someone who's new to all of this isn't going to understand what to do if I just link to http://www.pixelbeat.org/scripts/findrepo http://www.pixelbeat.org/scripts/findrepo