[plug] How to "locate *.foo" ??
Gregory Orange
gregory.orange at metoceanengineers.com
Tue Jan 8 12:11:09 WST 2008
Michael Holland wrote:
> The useful locate command has been replaced with slocate, but I'm not
> sure how to get the old behavior for a simple "locate *.foo" .
> In the old version, that would get me all filenames with that extension,
> but now it returns all files with .foo anywhere in the name, as if I
> asked for *.foo* . Why??
> There is a -regexp option, but "slocate --regexp '.*\.foo$' "
> matches nothing. Why doesn't the $ match end of filename?
>
> cheers, Mike
Hehe that's something I've never understood. So I use
"locate .foo | egrep \.foo$"
Ciao,
Greg.
More information about the plug
mailing list