Graham Barr > perl-ldap-0.3202 > ldifsort.pl

Download:
perl-ldap-0.3202.tar.gz

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Source   Latest Release: perl-ldap-0.34

NAME ^

ldifsort.pl - Sorts an LDIF file by the specified key attribute. The sorted version is written to standard output.

DESCRIPTION ^

Sorts an LDIF file by the specified key attribute.

SYNOPSIS ^

ldifsort.pl -k keyattr [-and] file.ldif

-k

Specifies the key attribute for making sort comparisons. If 'dn' is specified, sorting is done by the full DN string, which can be composed of different attributes for different entries.

-a

Specifies that attributes within a given entry should also be sorted. This has the side effect of removing all comments and line continuations in the LDIF file.

-n

Specifies numeric comparisons on the key attribute. Otherwise string comparisons are done.

-d

Specifies that the key attribute is a DN. Comparisons are done on a DN-normalized version of attribute values. This is the default behavior if 'dn' is passed as the argument to -k.

AUTHOR ^

Kartik Subbarao <subbarao@computer.org>

syntax highlighting: