On 04/02/2026 14:24, Basil L. Contovounesios wrote:
Basil L. Contovounesios [2026-02-04 15:12 +0100] wrote:

That said, I think we can keep the generality by offsetting the line
number found by AWK by the start of the sed address.

I attach a patch which attempts this.  WDYT?

Sorry, wrong patch; correct one attached.

I tried it with both single and double sed addresses in
my cfg.mk value of news-check-lines-spec.

OK cool. It's a bit over complicated though.
I'll apply with this adjustment:

  stub_offset=$(sed -n "${stub_range}=" "$news" | head -n1)

cheers,
Padraig

Reply via email to