added multi-match.
authorChris Koeritz <fred@gruntose.com>
Sun, 27 Oct 2013 23:31:14 +0000 (19:31 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 27 Oct 2013 23:31:14 +0000 (19:31 -0400)
scripts/core/functions.sh

index 6f447a74b79e4d07bfbba3cf677a2f182bf4d9de..f6a9beb37fb55dccc23253001d11b84026d221ab 100644 (file)
@@ -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; }