]> git.stg.codes - stg.git/blobdiff - functest/functions
Enable some more libs.
[stg.git] / functest / functions
index 51a1fd32477b20231326eed90d42a6402ac49e88..a90b9dcd54686e0cc39c488ea42615c24281a400 100644 (file)
@@ -40,3 +40,8 @@ count()
         printf "$RES"
     fi
 }
+
+subst()
+{
+    sed -i "s|$1|$2|g" "$3" 2> /dev/null || sed -i "" "s|$1|$2|g" "$3"
+}