Add Tableaux.sh

This commit is contained in:
gitea committed 2026-10-09 08:00:52 +02:00
1 parent cff9d88740
commit 8f7f16abe6
1 file changed
+11
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Enregistre le nom des fichiers du répertoire courant
n=0
for fichier in *
do
tableau[n]=$fichier
echo "Fichier $n : ${tableau[n]}"
((n+=1))
done
echo "${#tableau[*]} fichiers dans le tableau :"
echo "${tableau[*]}"