diff options
-rwxr-xr-x | bin/loc | 2 | ||||
-rw-r--r-- | man/man1/loc.1df | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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 diff --git a/man/man1/loc.1df b/man/man1/loc.1df index 55890f37..f288402c 100644 --- a/man/man1/loc.1df +++ b/man/man1/loc.1df @@ -8,6 +8,7 @@ .B loc is a simple wrapper around find(1) which searches in the current directory tree for filenames matching a pattern, and prints them to stdout, newline-separated. -It is intended only for interactive use. +It skips dotfiles, and doesn't interate further into a directory if it matches +the terms. It is intended only for interactive use as a shortcut. .SH AUTHOR Tom Ryder <tom@sanctum.geek.nz> |