creating-multiple-output-files.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 creates 4 duplicate copies of the file.
3 Each copy is named: 'Room 10%.txt', where '%' is the number 1 to 5 respectively.
4 The Copy pipeline launched by the Runpipe stage command performs the actual file copy, this
5 pipeline simply launches the Copy pipeline with name of the input and output files. */
6
7 Address Rxpipe
8
9 'pipe literal /&installdrive:\&installpath\examples\input\/', /* Input path. */
10 '| duplicate 4', /* Make 9 additional copies. */
11 '| specs 1-* 1 /winston.txt/ n /,/ n', /* Input filename. */
12 /* Output filename. */,
13 '/&sysdrive:\Documents and Settings\&username\My Documents\Room 10/ nw',
14 'recno strip n /.txt/ n',
15 ,
16 /* Run the Copy pipeline. */,
17 '| runpipe "&installdrive:\&installpath\examples\subroutine\copy.rex"',
18 '| specs /Output file:/ 1 ws /\/ w-1 nw', /* Tell the user the name.. */
19 '| cons' /* ..of the file created. */
20
21 Say 'Hit Enter to close..'
22 Parse Pull
23
24 Exit 0
**** End of file ****
|