Skip to content

Commit cd40570

Browse files
committed
Add find-duplicate script
Add find-duplicate script Signed-off-by: Bensuperpc <[email protected]>
1 parent 917c0e2 commit cd40570

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

git/git-sync-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111
#// //
1212
#// Script, 2021 //
1313
#// Created: 29, May, 2021 //
14-
#// Modified: 24, July, 2021 //
14+
#// Modified: 24, July, 2021 //
1515
#// file: - //
1616
#// - //
1717
#// Source: //

linux/find-duplicate.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
#//////////////////////////////////////////////////////////////
4+
#// ____ //
5+
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
6+
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
7+
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
8+
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
9+
#// |_| |_| //
10+
#//////////////////////////////////////////////////////////////
11+
#// //
12+
#// Script, 2021 //
13+
#// Created: 30, July, 2021 //
14+
#// Modified: 30, July, 2021 //
15+
#// file: - //
16+
#// - //
17+
#// Source: - //
18+
#// OS: ALL //
19+
#// CPU: ALL //
20+
#// //
21+
#//////////////////////////////////////////////////////////////
22+
23+
time find . ! -empty -type f -print0 | xargs -0 -P"$(nproc)" -I{} sha256sum "{}" | sort | uniq -w64 -dD
24+
#time find . ! -empty -type f -exec sha256sum {} + | sort | uniq -w32 -dD

0 commit comments

Comments
 (0)