* [Comm] Поиск одинаковых файлов.
@ 2010-06-16 14:44 MisHel64
2010-06-16 15:17 ` Андрей Черепанов
2010-06-16 15:18 ` Andrey Liakhovets
0 siblings, 2 replies; 4+ messages in thread
From: MisHel64 @ 2010-06-16 14:44 UTC (permalink / raw)
To: community
Здравствуйте.
Есть несколько каталогов, занимающих довольно внушительное место.
Около 90% файлов в этих каталогах одинаковые.
Нужно все одинаковые файлы заменить жесткими ссылками.
Есть ли готовые решения, или наработки на эту тему?
--
С уважением,
MisHel64 mailto:MisHel64@Bk.Ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Поиск одинаковых файлов.
2010-06-16 14:44 [Comm] Поиск одинаковых файлов MisHel64
@ 2010-06-16 15:17 ` Андрей Черепанов
2010-06-16 15:18 ` Andrey Liakhovets
1 sibling, 0 replies; 4+ messages in thread
From: Андрей Черепанов @ 2010-06-16 15:17 UTC (permalink / raw)
To: ALT Linux Community general discussions
16 июня 2010 MisHel64 написал:
> Здравствуйте.
>
> Есть несколько каталогов, занимающих довольно внушительное место.
> Около 90% файлов в этих каталогах одинаковые.
> Нужно все одинаковые файлы заменить жесткими ссылками.
>
> Есть ли готовые решения, или наработки на эту тему?
ммм, однострочник на bash. Делаем md5sum на все файлы, сортируем по хэшу,
берём первый файл и остальные удаляем и делаем хардлинки.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Поиск одинаковых файлов.
2010-06-16 14:44 [Comm] Поиск одинаковых файлов MisHel64
2010-06-16 15:17 ` Андрей Черепанов
@ 2010-06-16 15:18 ` Andrey Liakhovets
2010-06-16 15:43 ` MisHel64
1 sibling, 1 reply; 4+ messages in thread
From: Andrey Liakhovets @ 2010-06-16 15:18 UTC (permalink / raw)
To: community
On Wed, 16 Jun 2010 18:44:13 +0400 MisHel64 wrote:
>
>Есть несколько каталогов, занимающих довольно внушительное место.
>Около 90% файлов в этих каталогах одинаковые.
>Нужно все одинаковые файлы заменить жесткими ссылками.
>
>Есть ли готовые решения, или наработки на эту тему?
hardlink
Андрей Ляховец
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Поиск одинаковых файлов.
2010-06-16 15:18 ` Andrey Liakhovets
@ 2010-06-16 15:43 ` MisHel64
0 siblings, 0 replies; 4+ messages in thread
From: MisHel64 @ 2010-06-16 15:43 UTC (permalink / raw)
To: ALT Linux Community general discussions
Здравствуйте, Andrey.
Вы писали 16 июня 2010 г., 19:18:51:
>>Есть несколько каталогов, занимающих довольно внушительное место.
>>Около 90% файлов в этих каталогах одинаковые.
>>Нужно все одинаковые файлы заменить жесткими ссылками.
>>
>>Есть ли готовые решения, или наработки на эту тему?
> hardlink
То, что доктор прописал, спасибо.
> Андрей Ляховец
--
С уважением,
MisHel64 mailto:MisHel64@Bk.Ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-16 15:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-16 14:44 [Comm] Поиск одинаковых файлов MisHel64
2010-06-16 15:17 ` Андрей Черепанов
2010-06-16 15:18 ` Andrey Liakhovets
2010-06-16 15:43 ` MisHel64
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git