#1 Le 04/03/2019, à 18:29
- Amniote
Sélection d'un fichier [RESOLU]
Bonjours à tous,
J'ai un soucis avec la commande suivante :
ls /home/Partage/PanGeneHome2/seqtest/taxo_*/taxo_*.fma
et me sors ceci :
/home/Partage/PanGeneHome2/seqtest/taxo_235/taxo_235.fma
/home/Partage/PanGeneHome2/seqtest/taxo_33993/taxo_33993_nuc.fma
/home/Partage/PanGeneHome2/seqtest/taxo_235/taxo_235_nuc.fma
/home/Partage/PanGeneHome2/seqtest/taxo_909929/taxo_909929.fma
/home/Partage/PanGeneHome2/seqtest/taxo_33993/taxo_33993.fma
/home/Partage/PanGeneHome2/seqtest/taxo_909929/taxo_909929_nuc.fma
Ceci m'embète car je cherche uniquement à travailler sur les fichiers suivants :
taxo_235.fma
taxo_33993.fma
taxo_909929.fma
donc il faudrait modifier ma ligne de commande pour que les fichiers suivants ne soient PAS pris en compte:
taxo_235_nuc.fma
taxo_33993_nuc.fma
taxo_909929_nuc.fma
Une idée ?
Merci d'avance !
Modération : merci d'utiliser les balises code (explications ici).
Dernière modification par Amniote (Le 04/03/2019, à 22:12)
Hors ligne
#2 Le 04/03/2019, à 18:38
- pingouinux
Re : Sélection d'un fichier [RESOLU]
Bonjour,
Essaye
ls /home/Partage/PanGeneHome2/seqtest/taxo_*/taxo_*[0-9].fma
Ajouté :
Ou bien
ls /home/Partage/PanGeneHome2/seqtest/taxo_*/taxo_*[!c].fma
Dernière modification par pingouinux (Le 04/03/2019, à 18:41)
Hors ligne
#3 Le 04/03/2019, à 18:43
- Amniote
Re : Sélection d'un fichier [RESOLU]
Oui ça fonctionne !
Merci beaucoup pour la réponse rapide et précise.
Bonne soirée a vous !
Hors ligne
#4 Le 04/03/2019, à 18:44
- Compte supprimé
Re : Sélection d'un fichier [RESOLU]
Bonjour,
Ceci devrait fonctionner ...
ls /home/Partage/PanGeneHome2/seqtest/taxo_*/taxo_*.fma | grep -v "nuc"
#5 Le 04/03/2019, à 21:28
- Hizoka
Re : Sélection d'un fichier [RESOLU]
Si c'est bon, ajoute [Résolu] dans ton titre
KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github
Hors ligne