12 lines
236 B
Bash
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[*]}"
|