You are mistaking the syntax of locate. It is a little confusing. First, you may not realize that you are actually matching the path too.
By default locate adds *s to both sides of the query. For example if I input "initrd.img" it changes it to "*initrd.img*" which matches any file with "initrd.img" somewhere in the full path. However, if you add a glob pattern locate will no longer add the globs on the ends. So if I input "initrd.img*" then nothing will ever match because the path will not match. The reason you can use the * at the beginning is because it will match any path and then the file name. "locate -r" is regular expression syntax. A completely different beast. -- Globbing characters are not recognised https://bugs.launchpad.net/bugs/217448 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs