teil11 und teil13

This commit is contained in:
Olli Graf
2024-08-18 16:42:01 +02:00
parent 197da26fa9
commit f979f9952d
4 changed files with 39 additions and 0 deletions

5
teil13/allparams.sh Executable file
View File

@@ -0,0 +1,5 @@
#! /usr/bin/bash
#allparams.sh
echo "${@}"

10
teil13/paramloop.sh Executable file
View File

@@ -0,0 +1,10 @@
#! /usr/bin/bash
#paramloop.sh
let count=0
for p in "${@}"; do
echo "Param ${count}: ${p}"
let count=count+1
done

14
teil13/testparams.sh Executable file
View File

@@ -0,0 +1,14 @@
#! /usr/bin/bash
# testparam.sh
echo " Param #0: ${0}"
echo " Param #1: ${1}"
echo " Param #2: ${2}"
echo " Param #3: ${3}"
echo " Param #4: ${4}"
echo " Param #5: ${5}"
echo " Param #6: ${6}"
echo " Param #7: ${7}"
echo " Param #8: ${8}"
echo " Param #9: ${9}"
echo " Param #10: ${10}"