mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-14 10:48:32 +05:00
ipset: remove unneeded brackets in awk regexp
This commit is contained in:
parent
688d4e27d7
commit
780bae9c42
@ -12,7 +12,7 @@ ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv
|
|||||||
awkgrep()
|
awkgrep()
|
||||||
{
|
{
|
||||||
# $1 - pattern
|
# $1 - pattern
|
||||||
nice -n 5 $AWK "{while ( match(\$0,/($1[ |;])/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }"
|
nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }"
|
||||||
}
|
}
|
||||||
|
|
||||||
dig_reestr()
|
dig_reestr()
|
||||||
|
@ -13,7 +13,7 @@ ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv
|
|||||||
awkgrep()
|
awkgrep()
|
||||||
{
|
{
|
||||||
# $1 - pattern
|
# $1 - pattern
|
||||||
nice -n 5 $AWK "{while ( match(\$0,/($1[ |;])/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }"
|
nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }"
|
||||||
}
|
}
|
||||||
|
|
||||||
dig_reestr()
|
dig_reestr()
|
||||||
|
Loading…
Reference in New Issue
Block a user