Hi David,

> Ah, but it busts on Solaris:
> 
>   awk: syntax error near line 1
>   awk: bailing out near line 1
> 
> At least we know where the problem is.

Oh, line 1.  `awk --posix' here suggests length would like parenthesis.

    awk '!length() && e {next} {e = !length()} 1'

I wonder if `diff -b' is the wrong approach as it's applying the -b to
the whole file.  Would using sed to canonicalise that one line to no
spaces at start or end, and only one space in between be better?

Cheers, Ralph.

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to