File: duplicate-files.sh

package info (click to toggle)
ns3 3.26%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 117,520 kB
  • ctags: 72,063
  • sloc: cpp: 462,724; python: 364,339; perl: 8,720; ansic: 7,153; xml: 3,401; makefile: 1,981; sh: 628
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