fix append_or_replace when regex contains \t
This commit is contained in:
@@ -10,7 +10,7 @@ REGEX=$1
|
||||
STRING=$2
|
||||
FILE=$3
|
||||
|
||||
if ! grep -Eq "$REGEX" "$FILE"; then
|
||||
if ! grep -Pq "$REGEX" "$FILE"; then
|
||||
builtin echo -e "$STRING" >>"$FILE"
|
||||
echo 'appended'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user