Skip to content

Instantly share code, notes, and snippets.

View mjf's full-sized avatar

Matouš Jan Fialka mjf

View GitHub Profile
@mjf
mjf / fdups
Last active July 26, 2019 10:54 — forked from anonymous/fdups
#! /bin/sh
# fdups - Finds duplicated files in given path
# Copyright (C) 2019 Matouš Jan Fialka, <http://mjf.cz/>
# Released under the terms of "The MIT License"
FDUPS_SUMPROG="${FDUPS_SUMPROG:-sha512sum}"
fdups1() {
find "$1" ! -type d -printf '%s\n' |