Files
Bash/Tableaux.sh
2026-10-09 08:00:52 +02:00

12 lines
236 B
Bash

#!/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[*]}"