Add ForInDoDone.sh

This commit is contained in:
gitea committed 2026-10-09 07:56:46 +02:00
1 parent 880eb10483
commit 09e044cb26
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
# Rempli un tableau avec des noms de fichiers
#!/bin/bash
# Boucle For
n=0
for fichier in *
do
if [[ -e "$fichier" ]]
then
tableau[$n]=$fichier
echo "${tableau[n]}"
else
echo "Aucun fichier"
fi
((n+=1))
done