Searching |
|
To search for a particular string in a
set of files you need to specify two things.
-
A search string. Enter this in the search
entry.
-
The files to search. Enter this in the
files entry. You should include a path to the files you want to search,
and append to the path the glob pattern for files in that directory in
which you would like to search.
Then hit the search button and you will see
the main text widget update with the results. It will pring "begin"
when it starts and "end" when it is done. If you see only begin and
end, tclsed.tcl did not find any matching text.
tclsed.tcl will highlight all occurances
of your search expression in its output. It will also highlight the
filenames of files in which the search expression was found. Double
clicking on the filenames will bring up the file in a text editor.
The files entry defaults to the directory
tclsed.tcl was run from, followed by a glob for .cpp and .h files.
Replacing |
|
To replace text, follow the steps in the
"searching" section and also specify the replacement text in the replace
entry field. Then, all you have to do is hit the "do substitution"
button and tclsed.tcl will do the rest.
It is often advisable to do a search first,
in order to verify that your search critera is correct and not going to
replace things you did not intend to be replaced.
Options |
|
The following behavior of tclsed.tcl can
be changed:
-
The full path to files will be displayed if
the "show full path" checkbutton is selected. This is off by default.
-
The glob for files will operate recursively
if the "recursive" checkbutton is selected. This is off by default.
-
Backups of files that have been affected by
the replace operation can be made if the "make backups" checkbutton is
selected. This is on by default.