On Thu, 26 Sept 2024 at 03:48, Paul Gevers <elb...@debian.org> wrote:

> Hi,
>
> On 25-09-2024 12:05, Craig Small wrote:
> >      grep -E '^([[:space:]]+[[:digit:]]+){18}$' "${stdoutF}" >/dev/null
>
> I thought the problem was that the result didn't start with
> ^[[:space:]], but with ^[[:digit:]],
>
Ah yes, because its %2lu and if its >= 10 then there is no space, for me
its almost always 1, or " 1"

>
> so the check should be
> ^[[:space:]]{0,1}[[:digit:]]([[:space:]]+[[:digit:]]+){17}$
> if I didn't make any regexp mistakes.
>
One, but you got me a very long way along. The first digit needs a +
because it can be 1-99

>
> Paul
>

Reply via email to