openldap/tests/scripts/subfilter.sh

7 lines
131 B
Bash
Raw Normal View History

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