Bonjour,

Je souhaiterais savoir avec quel commande shell je peux faire pour récupérer en sortie que le nom des répertoires sans les doublons.

Exemple :

En entrée j'ai un fichier "fichier1.txt" qui contient la liste ci-dessous :
cat fichier1.txt
612.01 /toto/home/m972004
596.01 /toto/home/i566143
553.04 /toto/home/i566143/REUNION
376.80 /toto/home/i425040
311.02 /toto/home/i425040/REUNION
310.42 /toto/home/i425040/REUNION/VBANK0507
289.84 /toto/home/m999999
281.46 /toto/home/i296232
277.22 /toto/home/m222607
251.44 /toto/home/s500870


et je souhaiterais avoir en sortie la liste ci-dessous

m972004
i566143
i425040
m999999
i296232
m222607
s500870

Pourriez vous m'aider svp.

En vous remerciant pour votre aide.