From ab7e47c57a71ac817474a6441b155b97333a7fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Fri, 10 Sep 2021 13:58:40 +0200 Subject: [PATCH] add function cporig cporig makes a copy of a file $FILENAME and names ist $FILENAME.orig --- functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions.sh b/functions.sh index 775e66b..3e2248b 100755 --- a/functions.sh +++ b/functions.sh @@ -996,5 +996,11 @@ convert_to_subvolume () { set +x return 0 +} + +cporig () { + + cp -b -i "${1}" "${1}.orig" + } #EOF