#1 Le 05/11/2017, à 17:48
- qolepam
trouver dans plusieurs chemins
bonjour,
Travaillant sous Ubuntu 14.04 LTS,j'ai l'habitude d'utiliser dans le terminal la commande suivante:
find chemin1 -mindepth 0 -exec cp '{}' cheminA \;
là pas de problème!
Quelle syntaxe pour trouver dans plusieurs chemins différents(chemin1+chemin2+chemin3)
find chemin1 chemin2 chemin3 -mindepth 0 -exec cp '{}' chemin2 \ ?
ou
find chemin1 -mindepth 0 -exec cp '{}' chemin2 \; && find chemin2 -mindepth 0 -exec cp '{}' chemin2 \ && find chemin3 -mindepth 0 -exec cp '{}' chemin2 \; ?
merci de votre aide
Dernière modification par qolepam (Le 05/11/2017, à 18:54)
Hors ligne
#2 Le 05/11/2017, à 18:48
- Sciensous
Re : trouver dans plusieurs chemins
la première idée est la bonne
antiX 19 et 21 et Ubuntu 20.04 et 22.04
( sous LXDE et gnome-shell )
Hors ligne