| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title>Searching for text within a file</title> |
| </head> |
| <body> |
| |
| <h1>Searching for text within a file</h1> |
| |
| <p>The <b>Go To</b> selection in the pop-up menu for the Navigator view allows you |
| to quickly find a resource in the Workbench by searching resource <i>names</i>. |
| </p> |
| |
| <p>You can also do contextual searches for information that is contained <i>inside</i> |
| files in the Workbench. To find all files that contain a particular string of characters: |
| </p> |
| |
| <ol> |
| <li>On the main toolbar, click the <b>Search</b> button |
| <img src="../images/Image50_search.gif" alt="search icon" border="0" width="26" height="22">.</li> |
| <li>Type your search string in the <b>Containing Text</b> field, or use the |
| pull-down list to select a previously entered search expression.<br> Use <code>\</code> as an escape |
| character for search strings that contain the special characters <code>*</code>, <code>?</code>, or <code>\</code>, |
| (for example: <code>d:\\directory\\filename.ext</code>.</li>) |
| <li>Finish entering your search options, (for example, to scope |
| the search to specified file types), and click <b>Search</b>.</li> |
| <li>The Search view displays the results of your search. Right-click on any item in |
| the Search view to open a pop-up menu that allows you to remove items from the |
| list, copy search results to the clipboard, or rerun the search. To open one of |
| the listed files, double-click it or select <b>Go to File</b> from its pop-up |
| menu.</li> |
| </ol> |
| |
| <p>If you close the Search view, you can return to it later by selecting <b>Window |
| > Show View > Other > Basic > Search</b>. |
| </p> |
| |
| <p><img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27"><br> |
| <a href="../concepts/csearchview.htm">Search view</a> |
| </p> |
| |
| <p><img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br> |
| <a href="../tasks/tasks-84b.htm">Searching for files</a> |
| </p> |
| |
| <p><img border="0" src="../images/ngrelr.gif" alt="Related reference" width="159" height="27"><br> |
| <a href="../reference/ref-26.htm">Search view</a><br> |
| <a href="../reference/ref-45.htm">File search</a> |
| </p> |
| |
| <p> <br> |
| <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a> |
| </p> |
| |
| </body> |
| </html> |