onlyuser / rm-dup

rm-dup is a script to remove duplicate files

Home Page:http://onlyuser.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

rm-dup

Copyright (C) 2011-2017 mailto:onlyuser@gmail.com

About

rm-dup is a script to remove duplicate files.

A Motivating Example

bash> rm-dup . mp4
Processing: ./file (5).mp4.. 9.8G
    Info: Found extra copy of file with same size: ./file (4).mp4.. 9.8G
    Info: Deleting duplicate: ./file (5).mp4.. 9.8G
    Info: Ignoring duplicate file with different size: ./file (3).mp4.. 4.2G != 9.8G
    Info: Ignoring duplicate file with different size: ./file (2).mp4.. 3.1G != 9.8G
    Info: Ignoring duplicate file with different size: ./file (1).mp4.. 9.0G != 9.8G
    Info: Ignoring duplicate file with different size: ./file.mp4.. 11G != 9.8G

Requirements

bash find rm du

Limitations

  • Duplicate file detection based on filename and file size.
  • Duplicate files must match pattern ".* ([0-9)+)\.$EXT", where $EXT is file extension.

Installation (Debian)

  1. git clone https://github.com/onlyuser/rm-dup.git

Usage

gen-callgraph <DIR!={$HOME}> <EXT={mp4/mp3/png/jpg/gif/bmp}>

References

Keywords

disk-space, disk-usage, duplicate-files, duplicate-detection

About

rm-dup is a script to remove duplicate files

http://onlyuser.github.io/


Languages

Language:Shell 100.0%