From 69ff8028b0f108c4fc2feeeb0431eb2bff96361c Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Wed, 10 Apr 2019 11:57:31 -0500 Subject: [PATCH] Use posix for better regex support in el6 --- src/recaplog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recaplog b/src/recaplog index 0b84a8c..3e16776 100755 --- a/src/recaplog +++ b/src/recaplog @@ -133,7 +133,7 @@ get_report_names_of_day() { log INFO "Finding reports from: ${day}" reports=( $( ls -1 "${BASEDIR}" 2>/dev/null | - awk -F. \ + awk --posix -F. \ ' /'${day}'-[0-9]{6}\.log$/ {sub("_'${day}'-[0-9]{6}","",$1); print $1} ' |