From 1915a56e69a320fa3a3c2d944cf120f2c958e287 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 27 Oct 2013 19:31:14 -0400 Subject: [PATCH] added multi-match. --- scripts/core/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 6f447a74..f6a9beb3 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -339,7 +339,7 @@ if [ -z "$skip_all" ]; then echo "text to replace that pattern with." return 1 fi - sed -i -e "s/$pattern/$replacement/" "$file" + sed -i -e "s%$pattern%$replacement%g" "$file" } function function_sentinel() { return 0; } -- 2.34.1