aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-09 10:42:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-09 10:42:44 +1300
commitc99a69b11eeda363efac03dd82e413abc661313f (patch)
treedae8b27efe52a228e1f8a67dec8b4aafaf84299d /bin
parentAdd chc(1df) (diff)
downloaddotfiles-c99a69b11eeda363efac03dd82e413abc661313f.tar.gz
dotfiles-c99a69b11eeda363efac03dd82e413abc661313f.zip
Refine loc(1df) a bit
Diffstat (limited to 'bin')
-rwxr-xr-xbin/loc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/loc b/bin/loc
index 20ef432e..813196c8 100755
--- a/bin/loc
+++ b/bin/loc
@@ -4,5 +4,5 @@ if [ "$#" -eq 0 ] ; then
exit 2
fi
for pat ; do
- find . -name '*'"$pat"'*'
+ find . -name '.*' ! -name '.' -prune -o -name '*'"$pat"'*' -prune -print
done