Browse Source

grep -F

pull/5/head
bolvan 8 years ago
parent
commit
5a75188430
  1. 2
      ipset/create_ipset.sh

2
ipset/create_ipset.sh

@ -14,7 +14,7 @@ do
[ -f "$f" ] && { [ -f "$f" ] && {
echo Adding to ipset $1 : $f echo Adding to ipset $1 : $f
if [ -f "$ZIPLIST_EXCLUDE" ] ; then 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 else
sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore
fi fi

Loading…
Cancel
Save