Testbed Support for GridPP member institutes [mailto:TB-
> [log in to unmask]] On Behalf Of Chris Brew said:
> Here’s a useful bit of sed magic:
>
> sed -ne '1{h;n;};/^ /!{x;p;};/^ /{H;g;s/\n //;h;};${g;s/\n //;p;}'
>
> that unrolls wrapped lines in ldap output and so makes it easier to
> compare the output between two bdiis.
Or indeed:
perl -p00e 's/\r?\n //g'
LDAP doesn't require any particular ordering of objects or attributes which can make diffs tricky - I always intended to write something to sort them but never got round to it. (You could just sort the whole thing but it would be hard to see where differences were coming from.)
Stephen
|