There are two ways to specify the grep
command in the search browser:
grep
command that you would specify at the UNIX command line into the Grep command area Then click on to perform the grep command.
Remember to specify the full pathname of any files that you wish to search. When using the pop-up menu, by default the Grep browser specifies the -n
argument to grep
which ensures that the line number is printed alongside any matches. This allows you to display the relevant source code by double-clicking on a match. This argument is specified automatically when you invoke the search browser by typing Meta-X grep
.
If you choose not to specify the -n
argument, a ?
symbol is printed alongside any matches found. You cannot double-click on any of these matches to display the relevant source code.