[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate(1) man page hard to understand, please rewrite
From: |
Alfred M. Szmidt |
Subject: |
Re: locate(1) man page hard to understand, please rewrite |
Date: |
08 Jul 2002 14:29:22 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Dan Jacobson <address@hidden> writes:
> Anyway, I wanted to search for any directories called tmp, so I did
> $ locate /tmp$ #no good
> $ locate /tmp|grep /tmp$ #best I can do I suppose
> Anyway, I think the man page is trying to say that it doesn't have any
> wildcard matching ability at all?
Could you be a bit more specific how it doesn't work? Does `locate
/tmp' give you no output? AFAIK `locate /tmp' should give you a list
of all entries that contain /tmp in their name. I.e. /tmp /blah/tmp.c
etc. locate doesn't distinguish between files and directories to my
knowledge.
Cheers,
--
Alfred M. Szmidt