|
Searching for a word or phrase |
Pipelines v1.6 |
.* Example by TenFiftyTwo(c). |
.* The following pipeline reads the file: example.txt and performs a non-case sensitive search for the.* word: 'lift'. For each record containing the word, the pipeline produces an output record comprising.* the record number, followed by the record. pipe < &installdrive:\&installpath\Examples\Input\example.txt .* Read input file.
| specs recno 1 1-* nw .* Record number in col 1.. .* ..followed by record. | locate anycase w2-* /lift/ .* Search record for the word. | console .* Display record on console.