xref: /original-bsd/usr.bin/locate/locate/locate.1 (revision e4dd4c49)
Copyright (c) 1989 The Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)locate.1 5.1 (Berkeley) 03/06/90

LOCATE 1 ""
C 7
NAME
locate - find files
SYNOPSIS
locate pattern
DESCRIPTION
Locate searches a database for all pathnames which match the specified pattern . The database is recomputed periodically, and contains the pathnames of all files which are publicly accessible.

Shell globbing and quoting characters (``*'', ``?'', ``\e'', ``['', and ``]'') may be used in pattern , although they will have to be escaped from the shell. Preceding any character with a backslash (``\e'') eliminates any special meaning which it may have. The matching differs in that no characters must be matched explicitly, including slashes (``/'').

As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''.

FILES
/var/db/locate.database
"SEE ALSO"
find(1), fnmatch(3)

Paper in February, 1983 issue of the USENIX publication ;login:.