From bfcf73006b682d7bc7c30f9b1f1aab3adebe40b5 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 6 Sep 2023 04:07:26 -0600 Subject: [PATCH] config: add sed_csum function. --- helpers/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/config b/helpers/config index 0d62157..2ddc5ec 100755 --- a/helpers/config +++ b/helpers/config @@ -266,3 +266,6 @@ remove_patch(){ sed -i "/$1/d" debian/patches/series } +sed_csum() { + grep -rl "$1" "$3" | xargs -r /bin/sed -i "s|$1|$2|" +}