)
}
+# Usage: sed_i ... <file>
+#
+# Uses <file>.tmp as temporary file. sed -i is not compatible due to different
+# implementations.
+sed_i() {
+ # Get last argument.
+ last=
+ for x; do
+ last="$x"
+ done
+
+ sed "$@" >"$last".tmp
+ mv "$last".tmp "$last"
+}
+
# Print the current OS. The following OS are supported at the moment:
# - Debian (debian)
# - Gentoo (gentoo)