Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] "How to"
- Date: Mon, 12 May 2014 07:28:59 +0200
- From: Bruno Raoult <braoult@example.com>
- Subject: Re: [tlug] "How to"
- References: <CAJA1Y2bTWLWhb0tcuZyeJQDXtAXsGRdyUw_T_Ft7sZ_W6nXhLQ@mail.gmail.com> <CAKXLc7fOK94iWsRP7QkfjaqotYRXfgRSQRtbMeRCT80M4_-b1w@mail.gmail.com>
On Mon, May 12, 2014 at 4:56 AM, Kalin KOZHUHAROV <me.kalin@example.com> wrote:
On Mon, May 12, 2014 at 1:02 AM, Bruno Raoult <braoult@example.com> wrote:rsync -HavPS src/ dst/ --dry-run
> Following our discussions, and different solutions to one problem.
>
> 1- You have 10,000 files, and you want to find duplicates. Sometimes, 1 file
> changes, or you add/remove one, so you want to find the changes quickly (let
> say daily). How?
>
This is one answer, but for another question :)
The target is not to backup anything (could be another question).
If you don't trust timestamps, add -c
If you want more robust and faster solution, go the FIM-way, use MD5
hashlist that you check against.
depends on the file format; use the command below followed bu
> 2- These files have "meta-information" inside (let say date/time), that you
> can extract. how would you do?
>
grep/perl with regex matching your dateformat:
* generic - strings
* multimedia - exiftool or exiv2
* most any executable - objdump
* many (incl. office) - fileI was not asking about getting the metadata, but using it.
So you have your 10,000 lines somewhere in memory (if you piped the output). Then?
br.
--
2 + 2 = 5, for very large values of 2.
- References:
- [tlug] "How to"
- From: Bruno Raoult
- Re: [tlug] "How to"
- From: Kalin KOZHUHAROV
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] What's with this anti-Apple tirade? [was: 2014-05-10 Linux Quiz]
- Next by Date: Re: [tlug] Living on the command line...
- Previous by thread: Re: [tlug] "How to"
- Next by thread: Re: [tlug] "How to"
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links