mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 23:29:34 -05:00
11 lines
180 B
Bash
11 lines
180 B
Bash
|
|
#! /bin/sh
|
||
|
|
#
|
||
|
|
# Strip entries that belong to subtree $2 (if any)
|
||
|
|
#
|
||
|
|
if test $# == 0 ; then
|
||
|
|
exit 1
|
||
|
|
else
|
||
|
|
awk "/^dn:/&&!/$1\$/ {while (\$1!=\"\") {print \$0;getline} print \"\"}"
|
||
|
|
fi
|
||
|
|
|