mv
All checks were successful
/ job (push) Successful in 11m15s

This commit is contained in:
Marc Beninca 2024-08-25 23:17:10 +02:00
parent 2e913e4d31
commit f3f19abad0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -298,6 +298,18 @@ spcd_os_rm() {
fi fi
} }
spcd_os_sed() {
spcd_os_sed__file="${1}"
shift
if [ -f "${spcd_os_sed__file}" ]; then
spcd_os_cat "${spcd_os_sed__file}"
for spcd_os_sed__regex in "${@}"; do
sed --in-place "s${spcd_os_sed__regex}g" "${spcd_os_sed__file}" &&
spcd_os_cat "${spcd_os_sed__file}"
done
fi
}
spcd_os_write() { spcd_os_write() {
spcd_os_write__file="${1}" spcd_os_write__file="${1}"
spcd_os_write__text="${2}" spcd_os_write__text="${2}"
@ -1230,18 +1242,6 @@ spcd_openssl() {
fi fi
} }
spcd_os_sed() {
spcd_os_sed__file="${1}"
shift
if [ -f "${spcd_os_sed__file}" ]; then
spcd_os_cat "${spcd_os_sed__file}"
for spcd_os_sed__regex in "${@}"; do
sed --in-place "s${spcd_os_sed__regex}g" "${spcd_os_sed__file}" &&
spcd_os_cat "${spcd_os_sed__file}"
done
fi
}
#╶──────────────────────────────────────╴ #╶──────────────────────────────────────╴
# ╭──────╮ # ╭──────╮