selecting-files-with-specific-attributes.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline searches the 'C' drive for the first 20 hidden, system files. */
3
4 Address Rxpipe
5
6 'pipe (endchar ~)',
7 'filelist drv=c subdir', /* The drive to search. */
8 '| a: fanout', /* Copy record to all output streams. */
9 '| locate w4 pattern /??1???1/', /* Select only hidden, system files. */
10 '| take 20', /* Select the first 20 records. */
11 '| b: faninany', /* Merge streams. */
12 '| cons', /* Display records on the console. */
13 '~',
14 'a:',
15 '| take 1', /* Read only the filelist header. */
16 '| b:' /* Route header back to FANINANY stage. */
17
18 Say 'Hit Enter to close..'
19 Parse Pull
20
21 Exit 0
**** End of file ****
|