dupfi

dupfi (Duplicate Finder) — a small script to search for duplicate files search for duplicates is carried out in two stages, first using a utility find (one of the utilities package Findutils) collects information about files with the same size in the specified directories. In the second stage, the files found are filtered by the checksum, use the md5sum (kit utility from GNU Coreutils).

dupfi can search in one or multiple directories (including subdirectories), optional hidden directories can be ignored, you can search for duplicate files only specified formats, to speed up the search, you can search for duplicates without checksum (only in size).

Search for duplicates in the current directory:

dupfi .

A list of recent results:

dupfi -s

Search for files only in the formats TXT and JPG:

dupfi . '( -iname *.txt -o -iname *.jpg )'

Search with ignore hidden directories:

dupfi . ! -path '*/.*'

Search results “by default” is saved to a file (~/.dupfi/duplicates) and/or immediately displayed in the terminal emulator, used less (a console utility used to view text files). In the scanning process can output only a minimum of information, the search results can not save.

License: GNU General Public License version 2.0 (GPLv2)

Home page

Author: posixru

Source: zenway.ru

(Visited 3 times, 1 visits today)