git-push-to-gitlab: Don't create or push `synced/master`
[sunny256-utils.git] / finddup
blob18ea2aaf5e8109477215e649863842e475053651
1 #!/usr/bin/env bash
3 #=======================================================================
4 # finddup
5 # File ID: e5069ae2-f742-11dd-8012-000475e441b9
6 # Find duplicated files.
7 # License: GNU General Public License version 2 or later.
8 #=======================================================================
10 myf "$@" -type f | \
11 ns | \
12 cut -f2- | \
13 sort -rn | \
14 sumdup | \
15 grep . | \
16 cut -f4 | \
17 tr '\n' '\0' | \
18 xargs -0 sha1sum | \
19 sed s/\\\\// | \
20 sort | \
21 sumdup | \
22 cut -c43-