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