From 5a751884305445ef712ee4d505b1830d657dc6df Mon Sep 17 00:00:00 2001 From: bolvan Date: Fri, 16 Jun 2017 12:27:08 +0300 Subject: [PATCH] grep -F --- ipset/create_ipset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipset/create_ipset.sh b/ipset/create_ipset.sh index 51ccc82..6ec6096 100755 --- a/ipset/create_ipset.sh +++ b/ipset/create_ipset.sh @@ -14,7 +14,7 @@ do [ -f "$f" ] && { echo Adding to ipset $1 : $f if [ -f "$ZIPLIST_EXCLUDE" ] ; then - grep -vxf $ZIPLIST_EXCLUDE "$f" | sort -u | while read ip; do echo add $1 $ip; done | ipset -! restore + grep -vxFf $ZIPLIST_EXCLUDE "$f" | sort -u | while read ip; do echo add $1 $ip; done | ipset -! restore else sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore fi