[sysadmin-bin] Supported regex syntax
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Supported regex syntax
- Date: Wed, 13 Jun 2018 08:14:05 +0000 (UTC)
commit 8a78d57319a4849a04584e16cedf804c0d48a5d3
Author: Andrea Veri <averi redhat com>
Date: Wed Jun 13 10:13:52 2018 +0200
Supported regex syntax
gnomeweb/list-abusers | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomeweb/list-abusers b/gnomeweb/list-abusers
index 2a89f5b..6fb31ef 100755
--- a/gnomeweb/list-abusers
+++ b/gnomeweb/list-abusers
@@ -54,7 +54,7 @@ access_log$1.gz
while read filetest; do
if [ -e "$filetest" ]; then
FILE="$filetest"
- if [[ `head -n 1 $filetest | cut -d' ' -f1` =~ ^\d+\.\d+\.\d+\.\d+$ ]]; then
+ if [[ `head -n 1 $filetest | cut -d' ' -f1` =~
^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
IS_UNPROXIED_SCRIPT='true'
else
IS_REVERSE_PROXY_SCRIPT='true'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]