[plug] How to "locate *.foo" ??
Kirk Turner
gameldar at gmail.com
Tue Jan 8 13:54:08 WST 2008
On Jan 8, 2008 11:43 AM, Michael Holland <michael.holland at gmail.com> wrote:
> There is a -regexp option, but "slocate --regexp '.*\.foo$' "
> matches nothing. Why doesn't the $ match end of filename?
A slight syntax difference is the reason. From the man:
slocate [-i] [-r <regexp>] [--regexp=<regexp>]
"slocate --regexp='.*\.foo$' "
or
"slocate -r '.*\.foo$' "
Will get you what you want.
Kirk
More information about the plug
mailing list