Web lists-archives.com

Re: any program that search for same files?




it seems all those packages compare contents of files
but my definition of same file is same name and size
and should run much fast

and they seem to search all directories for same files
and this is different from my requirement

my ideal program should take two directories as argument
and print files that are in both directories
i don't care same files within one directory

my ideal program can also take one directory as argument
and print same file in it

if more than two directories are given,
then first directory is searched,
all files that are also in other directories are printed

it seems i have to write it in java
is there users' interest for such program?




On Monday, October 15, 2018 11:15 PM, Andrew McGlashan <andrew.mcglashan@xxxxxxxxxxxxxxxxxxxxx> wrote:


Hi,

On 15/10/18 09:06, Long Wind wrote:
> given two directories, the program can print files that are in both
> directories
>
> to make it easy, if file name and size are same, then they are same
>
> i've to admit my memory is poor, if good, who need such program?
>
> i'm about to write it in java, it can be completed in a few hours
> but i think there might be simple solution


diff -s

Cheers
A