{"id":29272085,"url":"https://github.com/acook/rivalry","last_synced_at":"2025-07-05T00:10:31.348Z","repository":{"id":6603915,"uuid":"7847120","full_name":"acook/rivalry","owner":"acook","description":"The (fast!) duplicate file finder for Ruby!","archived":false,"fork":false,"pushed_at":"2024-08-17T18:40:39.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T23:03:08.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acook.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-27T02:38:51.000Z","updated_at":"2024-08-17T18:40:42.000Z","dependencies_parsed_at":"2022-09-03T21:22:14.300Z","dependency_job_id":null,"html_url":"https://github.com/acook/rivalry","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/acook/rivalry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Frivalry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Frivalry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Frivalry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Frivalry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acook","download_url":"https://codeload.github.com/acook/rivalry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Frivalry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636825,"owners_count":23492312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-05T00:10:30.691Z","updated_at":"2025-07-05T00:10:31.343Z","avatar_url":"https://github.com/acook.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rivalry\n\nRivalry is the (fast!) duplicate file finder written in Ruby.\n\nIt supports specifically targeting audio and image files and ignores SCM folders such as `.git` and `.hg` by default.\n\n## Installation\n\nUsing rubygems just:\n\n    $ gem install rivalry\n\nIf you wish to use Rivalry's functionality inside your app your can instead add this line to your application's Gemfile:\n\n    gem 'rivalry'\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nOn the commandline the most basic usage is:\n\n```ruby\n$ rivalry ~/directory/with/duplicates\n```\n\nIt will display the duplicate files on the screen, which can then be grepped or otherwise used to remove the unwanted duplicates.\n\nExample output:\n\n```ruby\n$ rivalry ..\nScanning all files...\n-- Total Size  : 173 MB\n-- Total Count : 95 files\n-- Similar     : 34 files with the same size\n\nDetermining duplicates...\n-- Dupes Count : 2 files\n\n/Users/acook/Dropbox/Projects/Negutyv Xeiro/Audio/Cytokine Storm/Negutyv Xeiro - Cytokine Storm [Mørch Mix].mp3\n/Users/acook/Dropbox/Projects/Negutyv Xeiro/Audio/Cytokine Storm/alexcyto/Cytokine Storm m.mp3\n```\n\nWhat I do is capture the buffer in a file and delete the lines above the actual filenames:\n\n`grep \"^/Users/acook/Dropbox/Projects\" rivalry_output.txt \u003e duplicate_files.txt`\n\nThen pull out the files I want to delete based on some sort of pattern:\n\n`grep \"alexcyto\" duplicate_files.txt \u003e files_to_delete.txt`\n\nI backup the files I'm about to remove (just in case):\n\n```\nmkdir dups\nrsync -av --files-from=files_to_delete.txt / ./dups\n```\n\nAnd then I remove the files:\n\n`xargs rm -v \u003c files_to_delete.txt`\n\nor using [GNU parallel](http://en.wikipedia.org/wiki/GNU_parallel):\n\n`cat files_to_delete.txt | parallel rm -v`\n\nDone!\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Frivalry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facook%2Frivalry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Frivalry/lists"}