Bonjour,
Est-ce que quelqu'un peut me dire ce que fait la ligne suivante:
in=false
dans ce code:
D'avance merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #!/bin/bash # enter your array comparison code here # initialize arrays a b c a=(3 5 8 10 6) b=(6 5 4 12) c=(14 7 5 7) # comparison of first two arrays a and b for x in "${a[@]}" do in=false # <-- ICI for y in "${b[@]}" do if [ $x = $y ] then # assigning the matching results to new array z z[${#z[@]}]=$x fi done done
Partager