Bonjour,
Je dispose de n dossiers nommés dossier_1, dossier_2, dossier_3, etc.
Je cherche un moyen simple de déplacer tous les dossier_n du dossier source vers un autre.
Merciiiiiiiiiiiiii:aie::aie::aie::aie:
Version imprimable
Bonjour,
Je dispose de n dossiers nommés dossier_1, dossier_2, dossier_3, etc.
Je cherche un moyen simple de déplacer tous les dossier_n du dossier source vers un autre.
Merciiiiiiiiiiiiii:aie::aie::aie::aie:
le plus simple
plus simple ... heu....Code:
1
2 cd dossiersource mv dossier_* /chemin/dossierdestination/
par exemple
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 # cd /tmp # mkdir toto # mkdir toto/t{a,i,o}t{a,i,o} # mkdir titi # cd toto # ls -ld * drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tata drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tati drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tato drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tita drwxr-xr-x 2 root wheel 512 Jul 25 15:58 titi drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tito drwxr-xr-x 2 root wheel 512 Jul 25 15:58 tota drwxr-xr-x 2 root wheel 512 Jul 25 15:58 toti drwxr-xr-x 2 root wheel 512 Jul 25 15:58 toto # mv t* /tmp/titi/ # cd ../titi # ls -ld * drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tata drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tati drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tato drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tita drwxr-xr-x 2 root wheel 512 Jul 25 15:59 titi drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tito drwxr-xr-x 2 root wheel 512 Jul 25 15:59 tota drwxr-xr-x 2 root wheel 512 Jul 25 15:59 toti drwxr-xr-x 2 root wheel 512 Jul 25 15:59 toto # cd /tmp # rm -rf t[io]* #