projects
/
www.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added psensor 1.2.1 news
[www.git]
/
src
/
tricks
/
find_same_files.sh
1
#!/bin/bash
2
3
# Find same files in a given directory
4
#
5
# jeanfi@gmail.com - 2017/06/08
6
set -e
7
8
if [ -z "$1" ]; then
9
SDIR="."
10
else
11
SDIR="$1"
12
fi
13
14
find "$SDIR" -type f -exec md5sum {} \; | sort -n | uniq -w32 -D