openldap/tests/scripts/subfilter.sh

7 lines
133 B
Bash
Raw Normal View History

#! /bin/sh
#
2001-11-05 03:52:01 -05:00
# Strip entries that belong to subtree $1
#
2003-02-27 17:41:13 -05:00
awk '/^dn:/ && !/'"$1"'$/ {while ($0 != "") {print $0; getline} print ""}'