openldap/tests/scripts/subfilter.sh
Pierangelo Masarati b6ff5c4d50 cleanup
2001-11-05 08:52:01 +00:00

6 lines
131 B
Bash
Executable file

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