Example : text search
File-Search.dxd searches the input files for the text strings specified in "search items". It generates 4 output files :
- An HTML search results file listing the "hits" and linking back to the input files containing the hits
- A text results file listing the hits
- A text file listing the files containing hits
- A text file containing a brief summary - number of files scanned, number of hits, number of files with hits
You can specify multiple search items :
Use the Enabled checkbox to specify which items to include in the search.
The output of DTBuild / File-Search resembles that of the output of the grep utility. It decides it has found the search items when the "Line tail" node is recognized, so that's where "the action is" (the node where the actions are performed). The sequence recognized is :
* - search items - *
This parser recognizes the * (asterisk, or "anything but newline") pattern, i.e. all characters except carriage returns (13 decimal) and line feeds (10 decimal).
Hence it does one line at a time.