openldap/tests/scripts/subfilter.sh
2003-02-27 22:41:13 +00:00

6 lines
133 B
Bash
Executable file

#! /bin/sh
#
# Strip entries that belong to subtree $1
#
awk '/^dn:/ && !/'"$1"'$/ {while ($0 != "") {print $0; getline} print ""}'