[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tar problem (duplicate files)
From: |
Dario Spagnolo |
Subject: |
tar problem (duplicate files) |
Date: |
Mon, 23 Jun 2003 10:57:21 +0200 |
Hi folks,
this morning I ran into a really strange problem. I'm not sure it's a bug, but
this list seemed the most appropriate.
Here is my output :
$ find /home/mm -size -100k > mm-files
$ wc -l mm-files
955 mm-files
(these files take 6.6 Mb)
$ tar -cvf mm.tar -T mm-files
$ tar -tvf mm.tar | wc -l
4677
$ ll -h mm.tar
-rw-r--r-- 1 spada spada 19M Jun 23 10:16 mm.tar
$ tar -tvf mm.tar | grep "blog/s4.zip"
-rwxrwxrwx mm/ftp_only 23233 2003-04-05 14:04:10 home/mm/blog/s4.zip
-rwxrwxrwx mm/ftp_only 23233 2003-04-05 14:04:10 home/mm/blog/s4.zip
-rwxrwxrwx mm/ftp_only 23233 2003-04-05 14:04:10 home/mm/blog/s4.zip
---------------------------
To recap :
I want to tar all files in /home/mm smaller than 100k. There are 955 files that
correspond to this criterion, they take 6.6Mb.
I tar them. I list the content of the archive and count the lines : 4677 files
instead of 955. The size differ from 6.6Mb to 19M.
I then list the content of the archive filtering out everything except the file
s4.zip. This file appears 3 times in the archive !! :)
Do I need a psychanalist ? :-)
Thank you for your patience guys !
Dario
- tar problem (duplicate files),
Dario Spagnolo <=