From: Oleg Broytman Date: Tue, 19 Aug 2014 20:58:24 +0000 (+0400) Subject: No need to run two similar locate commands X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=05bea3cce607ae3d9ff6151bd7ed5ed1aa113194;p=git-scripts.git No need to run two similar locate commands Results for `locate -b \\.git' is fully contained in `locate -b \*.git'. --- diff --git a/locate-all b/locate-all index fb9d0d5..21daa91 100755 --- a/locate-all +++ b/locate-all @@ -1,3 +1,2 @@ #! /bin/sh -(locate -b \\.git && locate -b \*.git) | sed 's!/\.git$!!' | - sort | uniq >locate-all.list +locate -b \*.git | sed 's!/\.git$!!' | sort | uniq >locate-all.list