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

Michael Holland michael.holland at gmail.com
Tue Jan 8 12:43:07 WST 2008


Gregory Orange wrote:

> Hehe that's something I've never understood. So I use
> "locate .foo | egrep \.foo$"

Ta, I added the following to .zshrc:

   loc(){ slocate $1 | egrep $1$ }
   alias locate='noglob loc'

Now I can "locate *.foo" faster than using PERL. A bit of a hack though?




More information about the plug mailing list