ajout functions.sh
This commit is contained in:
13
functions.sh
Normal file
13
functions.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#/home/usera/functions.sh
|
||||||
|
function myerror {
|
||||||
|
code=$1
|
||||||
|
shift
|
||||||
|
message=$@
|
||||||
|
echo "$message"
|
||||||
|
exit $code
|
||||||
|
}
|
||||||
|
|
||||||
|
function toUpper {
|
||||||
|
VAR=${1^^}
|
||||||
|
echo $VAR
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user