A voir également:
- Probleme shell
- Classic shell - Télécharger - Personnalisation
- Ssh secure shell download - Télécharger - Divers Web & Internet
- Shell startup windows 10 - Guide
- Shell infrastructure host c'est quoi - Guide
- Shell do while ✓ - Forum Shell
2 réponses
Salut,
Une façon de faire :
Une façon de faire :
[tmpfs]$ tree . |-- rep1 | |-- fich1 | |-- fich2 | |-- fich3 | |-- tata | |-- titi | `-- toto `-- rep2 |-- fich1 |-- fich2 |-- fich3 |-- mama |-- mimi `-- momo 2 directories, 12 files [tmpfs]$ ls rep1/ rep2/ | sort | uniq -d > plop [tmpfs]$ cat plop fich1 fich2 fich3 [tmpfs]$ tableau=( $(cat plop) ) [tmpfs]$ echo ${#tableau[@]} 3 [tmpfs]$ echo ${tableau[@]} fich1 fich2 fich3 [tmpfs]$ echo ${tableau[0]} fich1 [tmpfs]$ echo ${tableau[1]} fich2 [tmpfs]$ echo ${tableau[2]} fich3 [tmpfs]$;-))