| The XLocate Handbook | ||
|---|---|---|
| <<< Previous | Chapter 3. Using XLocate | Next >>> |
This is where you type the pattern you want to search for, and select different options regarding your search.

Screenshot of Search groupbox
Check this box if you want to display exact case matches only.
If this box is unchecked, all matching paths will be listed, which can produce unnecessarily long listings if the match is in the directory part of the path.
Let's suppose you have 2 directories "/seaside" and "/seashore" with 5 files "/seaside/sand" , "/seashore/algae", "/seashore/stone", "/seashore/cliff" and "/seashore/seagull" in the database. Now when you search for "sea" with the Spare listing box unchecked, you will get all 7 path matches. By leaving this box checked, only 3 matches will show in the file list, namely "/seaside", "/seashore" and "/seashore/seagull". Note that "/seashore/seagull" appears because there is another match in the file basename, it it not a mere repetition of the directory match. If you check Spare listing but your search string ends with a slash, then you will also list one level of entries in the matching directories.
This is the -r option of slocate. It appears only if XLocate is configured for slocate, since GNU locate only uses filename patterns, when metacharacters `*', `?', and `[]' are found.
In this mode, slocate lets you search for regexps instead of just textual strings. For instance you'll be able to search for files with ".html" extension simply by typing \.html$ with the Regexp search box checked.
Type info regex on a terminal for more informations on regexps.
![]() | Do not enter double quotes around the regexp as you would using slocate's command line. |
![]() | The Spare listing checkbox has no effect on a regexp search, but the Case sensitive does. |
Start the search. The results will be sorted by pathname if the sort utility was found on your system.
Aborts a running search. May be useful when you have launched a search with lengthy output.
| <<< Previous | Home | Next >>> |
| Using XLocate | Up | The select groupbox |