[plug] How to "locate *.foo" ??

Michael Holland michael.holland at gmail.com
Tue Jan 8 15:39:00 WST 2008


Mathieu Petit-Clair wrote:
> Kirk Turner wrote:
>> "slocate -r '.*\.foo$' "
>>
>> Will get you what you want.

> slocate -r '\.foo$'

Thanks guys.
BTW I now have :  alias loc='noglob slocate -r' , so $ loc \\.foo$
Is there a 'noglob' equivalent prefix in bash?  (rather than 'set -o')


So is there no simple way to get the original behaviour, using 
shell-style wildcards rather than regexp's?

Mike




More information about the plug mailing list