Date: Tue, 22 Aug 2000 21:41:51 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Mark Ovens <marko@freebsd.org> Cc: doc@freebsd.org Subject: Re: locate(1) manpage Message-ID: <20000822214151.W20036@strontium.scientia.demon.co.uk> In-Reply-To: <20000822202520.E254@parish> References: <20000820130425.B254@parish> <20000820212720.C84036@strontium.scientia.demon.co.uk> <20000822202520.E254@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Ovens wrote: > I understand what you mean, but I think it is more complicated than > that. Try > > # locate "/include/" > # locate "*include/" > # locate "/include*" This is explained elsewhere in the manpage. (This is a polite way of saying "RTFM" ;-) As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''. So "locate /include/" is the same as "locate */include/*" which matches "/usr/include/ctype.h", but "/include*" is just treated as "/include*", which "/usr/include/ctype.h" doesn't match. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000822214151.W20036>