aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-09 11:58:07 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-09 11:59:30 +1300
commita2f9d7b022ddcb34564b75cecfc4bc371c79ba5f (patch)
tree1789f726cebbbe08e42fb1cf1fa378b712ecd161 /bin
parentPrevent man(1) completion interfering with paths (diff)
downloaddotfiles-a2f9d7b022ddcb34564b75cecfc4bc371c79ba5f.tar.gz
dotfiles-a2f9d7b022ddcb34564b75cecfc4bc371c79ba5f.zip
Break long line in loc(1df)
Diffstat (limited to 'bin')
-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