Bonjour,
J'ai un fichier tar, et je voudrais voir son contenu en affichant les fichiers par ordre de taille (et avec leur taille).
Comment est-ce possible ?
Merci pour votre aide.
Bonjour,
J'ai un fichier tar, et je voudrais voir son contenu en affichant les fichiers par ordre de taille (et avec leur taille).
Comment est-ce possible ?
Merci pour votre aide.
ça vaut mieux qu'un long discours.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 /tmp>tar tvf test.tar | sort -k 3 blocksize = 40 -rw-rw-r-- 1550/0 0 Jan 23 13:03:50 2008 test_ftp_JOGRA732BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:23:07 2008 test_ftp_JOFAC753BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:23:07 2008 test_ftp_JOFAC754BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:08 2008 test_ftp_JOREF766BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:11 2008 test_ftp_JOREF708BM_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:15 2008 test_ftp_JOREF724BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:18 2008 test_ftp_JOREF709BM_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:23 2008 test_ftp_JOREF707BM_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:30 2008 test_ftp_JOREF755BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:35 2008 test_ftp_JOREF706BE_2 -rw-rw-r-- 1550/0 0 Jan 25 03:45:38 2008 test_ftp_JOREF700BE_2 -rw-rw-r-- 1550/0 311 Jan 25 03:45:24 2008 test_ftp_JOREF707BM_1 -rw-rw-r-- 1550/0 312 Jan 25 03:45:35 2008 test_ftp_JOREF706BE_1 -rw-rw-r-- 1550/0 314 Jan 25 03:45:18 2008 test_ftp_JOREF709BM_1 -rw-rw-r-- 1550/0 319 Jan 25 03:45:11 2008 test_ftp_JOREF708BM_1 -rw-rw-r-- 1550/0 321 Jan 25 03:45:15 2008 test_ftp_JOREF724BE_1 -rw-rw-r-- 1550/0 367 Jan 25 03:45:38 2008 test_ftp_JOREF700BE_1 -rw-rw-r-- 1550/0 373 Jan 25 03:45:10 2008 test_ftp_JOREF766BE_1 -rw-rw-r-- 1550/0 374 Jan 25 03:23:07 2008 test_ftp_JOFAC753BE_1 -rw-rw-r-- 1550/0 374 Jan 25 03:23:07 2008 test_ftp_JOFAC754BE_1 -rw-rw-r-- 1550/0 375 Jan 25 03:45:32 2008 test_ftp_JOREF755BE_1 -rw-rw-r-- 1550/0 416 Jan 23 13:03:51 2008 test_ftp_JOGRA732BE_1 /tmp>
Heu... chez moi ça marche pas bien. J'obtiens des choses comme :
... où l'on voit qu'un fichier de 996 octets serait plus grand qu'un fichiers de 9953 octets.-rw-r--r-- 0/0 995 2007-06-13 19:50 ServeurMessagerie.java,v
-rw-r--r-- 0/0 995 2008-01-24 08:03 .Mail/spams/cur/1201158217.6626.J6PDZ:2,S
-rw-r--r-- 0/0 9953 2007-06-13 19:54 i3.gif
-rw-r--r-- 0/0 996 2007-06-13 19:44 lettre.xml~
En tous les cas cela me donne une piste, je te remercie.
Partager