[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
limiting the directory to locate and search by file type
From: |
Peng Yu |
Subject: |
limiting the directory to locate and search by file type |
Date: |
Mon, 7 Nov 2011 16:02:37 -0600 |
Hi,
For 'find', I can specify which directory (directories) to perform the
search. It seems that there is no such an option for 'locate' to
restrict the search to certain directory rather than everything in the
database (specified by -d).
Also 'find' offer the option -type, which allows me to search based on
the file type. But I don't see there is a corresponding option in
locate.
Is my observation correct? Is there a way to do the above two
operations with /locate'?
--
Regards,
Peng
- limiting the directory to locate and search by file type,
Peng Yu <=