From: Chris Koeritz Date: Sun, 27 Oct 2013 23:31:14 +0000 (-0400) Subject: added multi-match. X-Git-Tag: 2.140.90~896 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=1915a56e69a320fa3a3c2d944cf120f2c958e287;p=feisty_meow.git added multi-match. --- 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; }