aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/loc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/loc b/bin/loc
index 813196c8..7f4ac1fa 100755
--- a/bin/loc
+++ b/bin/loc
@@ -4,5 +4,7 @@ if [ "$#" -eq 0 ] ; then
exit 2
fi
for pat ; do
- find . -name '.*' ! -name '.' -prune -o -name '*'"$pat"'*' -prune -print
+ find . \
+ -name .\* ! -name . -prune -o \
+ -name \*"$pat"\* -prune -print
done