collate-machine-snapshots.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline collates the files generated by the pipelines:
3 Machine snapshot1.rex and Machine snapshot2.rex. The pipeline collates the
4 two files to determine if any files have been changed or deleted and which
5 files are new.
6
7 The pipeline illustrates the use of the Collate stage. */
8
9 Address Rxpipe
10
11 'pipe (endchar ?)',
12 /* Read master input file. */,
13 '< &sysdrive:\Documents and Settings\&username\My Documents\snapshot1.txt',
14 '| sort', /* COLLATE expects a sorted input. */
15 '| c: collate', /* Find matches. */
16 '| hole', /* Discard matching records. */
17 '?',
18 /* Read detail input file. */,
19 '< &sysdrive:\Documents and Settings\&username\My Documents\snapshot2.txt',
20 '| sort', /* COLLATE expects a sorted input. */
21 '| c:', /* Define secondary streams for COLLATE. */
22 /* Write missing files. */,
23 '| > &sysdrive:\Documents and Settings\&username\My Documents\missingfiles.txt',
24 '?',
25 'c:', /* Define tertiary output for COLLATE. */
26 /* Write new files. */,
27 '| > &sysdrive:\Documents and settings\&username\My Documents\newfiles.txt',
28 '?',
29 'literal /Wait! Collating.../', /* Console info message. */
30 '| cons' /* Write it to the console. */
31
32 Say 'Hit Enter to close..'
33 Parse Pull
34
35 Exit 0
**** End of file ****
|