searching-for-a-word-or-phrase.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline reads the file: winston.txt and performs a non-case sensitive search
3 for the word: 'lift'. For each record containing the word, the pipeline produces an output
4 record comprising the record number, followed by the record. */
5
6 Address Rxpipe
7
8 'pipe < &installdrive:\&installpath\examples\input\winston.txt', /* Read input file. */
9 '| specs recno 1 1-* nw', /* Record number in col 1.. */
10 , /* ..followed by record. */
11 '| locate anycase w2-* /lift/', /* Search record for the word. */
12 '| console' /* Display record on console. */
13
14 Say 'Hit Enter to close..'
15 Parse Pull
16
17 Exit 0
**** End of file ****
|