File: duplicate-files.sh

package info (click to toggle)
ns3 3.37-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 101,592 kB
  • sloc: cpp: 614,846; python: 17,286; ansic: 7,257; xml: 3,432; makefile: 2,247; sh: 972; javascript: 165; perl: 102
file content (11 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

TMP1=doc-md5
TMP2=doc-md5.sort
CURDIR=$(pwd)
cd $1
find -maxdepth 1 -type f -exec md5sum {\} \; > $TMP1
sort $TMP1 > $TMP2

python ${CURDIR}/debian/duplicate-files.py $TMP2
rm -rf $TMP1 $TMP2