running a pipeline with wait.rex

Pipelines v2.1

 

.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10...

Home

     **** Top of file ****
   1
   2 /* The following pipeline selects '.rex' files from the 'Processing multiple files' directory, and for
   3    each file found, it launches the pipeline: Locate.rex with the name of the string to locate; 'path='.
   4    For the first record in each file that comprises the string, the pipeline writes an output record.
   5
   6    The pipeline: Locate.rex, performs the actual search, this pipeline simply generates a list of files
   7    to search.
   8
   9    This example is intended to illustrate how the Runpipe stage command can be used to launch another
  10    pipeline with arguments that substitute stage keywords and argument values. */
  11
  12 Address Rxpipe
  13
  14 'pipe (reg 3) filelist noh',
  15               'drv=&installdrive',
  16               'path="&installpath\examples\processing-multiple-files"',
  17               'ext=rex',                                              /* Input file type. */
  18      '| specs w5-* 1',                                                /* Discard filelist info. */
  19         ,
  20         /* Surround the filename with quotes, append the 'string' keyword, the number of.. */,
  21         /* ..records to search and the string to locate. */,
  22         ,
  23      '| specs 1-* 1 /,/ nw /regex/ nw /,/ nw /*/ nw /,/ nw \.*specs.*\ n',
  24         /* Run the pipeline. */,
  25      '| runpipe wait "&installdrive:\&installpath\examples\subroutine\locate.rex"'
  26
  27 Say 'Hit Enter to close..'
  28 Parse Pull
  29
  30 Exit 0
     **** End of file ****