Split before target

Pipelines v1.6

 

.* Example by TenFiftyTwo(c).

Home

 
.* The following pipeline reads the file: example.txt and splits each record before each
.* occurance of the word 'the'.
 
pipe < &installdrive:\&installpath\Examples\Input\example.txt .* Read input file.
     | split before string /the/                              .* Split before 'the'.
     | cons                                                   .* Display on the console.