glocate

faster locate using grep
git clone https://a3nm.net/git/glocate/
Log | Files | Refs | README

commit 08f97e5200d6201f319aa374a9f1707fcb6e2a2a
parent 55713e2e42a54d3de9c9679e2d6790eb9d54a4b2
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 10 Oct 2015 11:11:29 +0200

more permissive on file pattern

Diffstat:
glocate | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glocate b/glocate @@ -8,5 +8,5 @@ ARGS=$(printf " %q" "$@") # grep is slower with other locales, especially -i, so LC_ALL # use --line-buffered so it's easier to grep the output of this /usr/bin/parallel -i \ - bash -c "LC_ALL=C grep $ARGS {}" -- ${FILE}.? + bash -c "LC_ALL=C grep $ARGS {}" -- ${FILE}.*