Thank you both for all suggestions. I now use Rob's first one, just to keep it as a reminder that Between's "target" argument may also be a number of records.
Am 14.08.2019 um 18:49 schrieb Rob van der Heij: > | x: if between /tag/ 2 > | spec 1-* c2x > | join / / > | spec w2 1 w1 nw > | split > | spec 1-* x2c > | x: > > Or close... Yes, very close. As there are for sure no tab chars in input I may do it in three steps: > !e:between /see/ 2 > ! join x05 > ! spec f2 1 write f1 1 In case you are interested in the context, I reduce trace logs from pocket calculator emulators (CPU level simulations) by omitting all repetitions like debouncing loops and so on. A simple lookup autoadd is all to do so, but I want to reference the first occurrence of the dropped block _and_ also show its size. The size is computed by the difference of line numbers using the second reading station of Specs, what delays by one record. So I need to swap two lines. Ciao.....Mike -- www.Ok.de - die kostenlose E-Mail Adresse
