bonjour voici mon script :
le probleme est que bash interprete la valeur de $i comme une commande.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 var=`ls -h` cpt=0 #echo $var for i in $var do tableau[$cpt]="$i" cpt=$(($cpt + 1 )) done
Du coup j'ai cette erreur :
randomFich.sh: 13: tableau[0]=finalRandomizeSplash.sh: not found
randomFich.sh: 13: tableau[1]=randomFich.sh: not found
randomFich.sh: 13: tableau[2]=test2.sh: not found
Partager