Re: Piping commands to a shell but keeping interactivity

Liste des GroupesRevenir à col misc 
Sujet : Re: Piping commands to a shell but keeping interactivity
De : james.harris.1 (at) *nospam* gmail.com (James Harris)
Groupes : comp.os.linux.misc
Date : 09. Mar 2024, 20:54:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usiep7$2g66g$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 08/03/2024 04:56, Fritz Wuehler wrote:
James Harris <james.harri...@gmail.com> [JH]:
JH> What this is for is code to list files in a folder
JH> which are duplicates of those in another folder
JH> $ ./lsdup.py -r c d
 No need to reinvent the wheel:
 $ fdupes --recurse c d
 fdupes(1) will find duplicate files even with different filenames.
Different use case. fdupes reports duplicates anywhere, even in the same 'master' folder. By contrast,
$ ./lsdup.py -h
Usage:
    ./lsdup.py [opt...] master candidate...
Lists files etc in the candidate folders which are duplicates of
those in the master folder.
By default, this program will report those files which match on all of
eight attributes: name, size, UID, GID, disposition, permissions,
modification time, and content but can be told to ignore certain
mismatches (and thus list those files as duplicates).
For example, you may wish to identify a file as a duplicate even if
it has a different UID and GID as long as all other attributes match.
A file's name and its position in the folder hierarchy must always
match, and both must be regular files (not named pipes, for example).
etc.

 Adding the "--delete" option will prompt user for files to preserve,
deleting all others.
I have tried it but it required too much manual intervention.
--
James Harris

Date Sujet#  Auteur
9 Mar 24 o Re: Piping commands to a shell but keeping interactivity1James Harris

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal