Solaris Common Desktop Environment: User's Guide

To Find a File by Contents

  1. Choose Find from the File menu.

  2. Optional. You can use the File or Folder Name text field to narrow, and therefore speed up, the search.

    If you enter a partial name (using wildcards) File Manager examines only the files that match the File or Folder Name field. If you leave the File or Folder Name field empty, File Manager searches every file within the search folder. Names can be specified using the same regular expression syntax allowed by the grep command. (Refer to the grep man page for more information.)

  3. Type the text string you want to search for into the File Contents field.

    Case is ignored for this string (upper- and lowercase letters are equivalent). You do not have to use complete words. For example, if you type fi it will find both fish and File.

    Contents can be specified using the same regular expression syntax allowed by the grep command. (Refer to the grep man page for more information.)

  4. Type the name of the folder where you want the search to begin into the Search Folder field. (By default, this field contains the name of the current folder.)

  5. Click Start or press Return.

    File Manager begins searching the search folder and the folders it contains for files that contain the File Contents string. Matches that are found are listed in the Files Found list. Once you have found an object, you can select it in the list and then click Open Folder to open the folder it is in or Put In Workspace to place its icon on the current backdrop.

    To stop the search at any time, click the Stop button or press Return.