while $read(test\database.txt, w, *The.Sentinel*, $calc($readn +1)) {
echo -s Wildcard dupe: $ifmatch
}
See
/help $read for information on the 4th parameter.
You can also use the /filter command, to filter matching lines into a file or a window. Example:
/filter -ff test\database.txt output.txt *The.Sentinel*
(this one copies matching lines into output.txt)
See
/help /filter for more info.