removed blankspace from dir names

This commit is contained in:
2025-05-06 18:07:56 +02:00
parent 2b84ca3c7e
commit e84560fa25
19 changed files with 0 additions and 0 deletions

27
Task_1/array.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
MyArray=("Item1" "Item2" "Item3" 4 5)
echo $MyArray[0]
echo $MyArray[1]
echo $MyArray[2]
echo $MyArray[3]
echo $MyArray[4]
# ==============> Item1[1]\n ...
echo ${MyArray[0]}
echo ${MyArray[1]}
echo ${MyArray[2]}
echo ${MyArray[3]}
echo ${MyArray[4]}
# =============> Ausgabe der Werte
MyArray[0]="NewItem"
MyArray[1]=1
echo ${MyArray[0]} # neuer Wert wird ausgegeben
echo ${MyArray[1]} # neuer Wert wird ausgegeben
echo ${MyArray[2]}
echo ${MyArray[3]}
echo ${MyArray[4]}