erste Scripts für Teil 11 (if)

This commit is contained in:
Olli Graf
2024-07-26 12:06:31 +02:00
parent 52838b8724
commit b1871443df
5 changed files with 66 additions and 0 deletions

14
teil11/and.sh Normal file
View File

@@ -0,0 +1,14 @@
#and.sh
counter='1'
echo "${counter}"
let counter=counter+1
echo "${counter}"
let counter=counter+1
if [ ${counter} -eq 3 ] && [ ${counter} -gt 2 ]; then
echo "drei"
fi
let counter=counter+1
echo "${counter}"