Dateien hochladen nach „teil16“

Scripts zu Funktionen
This commit is contained in:
2024-09-20 05:05:00 +00:00
parent 68a8069739
commit b1065a657e
4 changed files with 41 additions and 0 deletions

12
teil16/loop-func.sh Normal file
View File

@@ -0,0 +1,12 @@
#! /usr/bin/bash
function hallo() {
echo "Hallo"
}
count=1
while [ ${count} -le 4 ]; do
hallo
count=$((${count} + 1))
done

6
teil16/mult-echo.sh Normal file
View File

@@ -0,0 +1,6 @@
#! /usr/bin/bash
echo "Hallo"
echo "Hallo"
echo "Hallo"
echo "Hallo"

12
teil16/param-func.sh Normal file
View File

@@ -0,0 +1,12 @@
#! /usr/bin/bash
function hallo() {
echo "Hallo ${1}"
}
count=1
while [ ${count} -le 4 ]; do
hallo "${count}"
count=$((${count} + 1))
done

11
teil16/simple-func.sh Normal file
View File

@@ -0,0 +1,11 @@
#! /usr/bin/bash
function hallo() {
echo "Hallo"
}
hallo
hallo
hallo
hallo