]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/subfilter.sh
another try at fixing test011
[openldap] / tests / scripts / subfilter.sh
index 61f17c61d587a26db81091cb84daa769b89d0962..37c60227808e8821ca8aa4ebe533044b24848d58 100755 (executable)
@@ -2,5 +2,5 @@
 #
 # Strip entries that belong to subtree $1
 #
-awk "/^dn:/&&!/$1\$/ {while (\$1!=\"\") {print \$0;getline} print \"\"}"
+awk '/^dn:/ && !/'"$1"'$/ {while ($0 != "") {print $0; getline} print ""}'