File: duplicate-files.sh

package info (click to toggle)
ns3 3.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 105,864 kB
  • sloc: cpp: 624,863; python: 14,863; ansic: 6,772; makefile: 1,950; sh: 987; javascript: 167; 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