From 4b5d96492995a496b0b8713e9927fe85205afbe9 Mon Sep 17 00:00:00 2001 From: Thomas C Date: Fri, 30 Sep 2022 07:25:10 +0000 Subject: [PATCH] ajout functions.sh --- functions.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 functions.sh diff --git a/functions.sh b/functions.sh new file mode 100644 index 0000000..bda0589 --- /dev/null +++ b/functions.sh @@ -0,0 +1,13 @@ +#/home/usera/functions.sh +function myerror { + code=$1 + shift + message=$@ + echo "$message" + exit $code +} + +function toUpper { + VAR=${1^^} + echo $VAR +} \ No newline at end of file