|
Reading multiple files |
Pipelines v1.6 |
.* Example by TenFiftyTwo(c). |
.* The following pipeline selects '.txt' and '.ini' files from the 'Examples\Input' directory, and for.* each file found (up to three files in total), it displays the contents of each on the console. pipe filelist noh
drv=&installdrive path="&installpath\Examples\Input" ext=(txt,ini) .* Generate file list. | take 3 .* Select only the first 3 files. | specs w5-* 1 .* Discard filelist stats. | < .* Read the file. | xlate ws xff w1 \ xfe .* Change backslashes in the path to x'fe'. | specs ws xfeff w-2 strip 1.16 w-1;* nw .* Discard the filepath, keep the filename and record. | console .* Display the record on the console.