diff options
author | DL6ER <dl6er@dl6er.de> | 2019-07-03 20:21:55 +0300 |
---|---|---|
committer | DL6ER <dl6er@dl6er.de> | 2019-07-03 20:21:55 +0300 |
commit | 7a1b6fd2055f1ded920dd24ab134fbd3a6d049ec (patch) | |
tree | a8cf1c04a2f5109a3bf31a2a662d3a8c6efb49f1 /advanced/Scripts/query.sh | |
parent | 1fe3507bc5e5e76109eecd9bd025dd024abf858f (diff) | |
parent | b78cbb98d8e50e68d06ae6eaea0c7aa4b665a61f (diff) |
Merge branch 'development' into new/gravity.db_domain_groups
Diffstat (limited to 'advanced/Scripts/query.sh')
-rwxr-xr-x | advanced/Scripts/query.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advanced/Scripts/query.sh b/advanced/Scripts/query.sh index af5ae0a8..4fc82744 100755 --- a/advanced/Scripts/query.sh +++ b/advanced/Scripts/query.sh @@ -41,7 +41,7 @@ scanList(){ # Iterate through each regexp and check whether it matches the domainQuery # If it does, print the matching regexp and continue looping # Input 1 - regexps | Input 2 - domainQuery - "regex" ) awk 'NR==FNR{regexps[$0]}{for (r in regexps)if($0 ~ r)print r}' \ + "regex" ) awk 'NR==FNR{regexps[$0];next}{for (r in regexps)if($0 ~ r)print r}' \ <(echo "${lists}") <(echo "${domain}") 2>/dev/null;; * ) grep -i "${esc_domain}" ${lists} /dev/null 2>/dev/null;; esac |