zsh:funcs:finddup: Add TODO to use CRC instead md5
This commit is contained in:
@@ -556,6 +556,8 @@ finddup() {
|
|||||||
# print duplicates
|
# print duplicates
|
||||||
# TODO: Fix duplicate lines output in the awk script that currently `sort
|
# TODO: Fix duplicate lines output in the awk script that currently `sort
|
||||||
# -u` handles
|
# -u` handles
|
||||||
|
# TODO: Use cksum to calculate faster CRC with custom awk solution to print
|
||||||
|
# duplicates, as `uniq -w32` breaks through the different CRC lengths.
|
||||||
find "$@" -type f -exec du '{}' '+' \
|
find "$@" -type f -exec du '{}' '+' \
|
||||||
| sort \
|
| sort \
|
||||||
| awk '{ if (!_[$1]) { _[$1] = $0 } else { print _[$1]; print $0; } }' \
|
| awk '{ if (!_[$1]) { _[$1] = $0 } else { print _[$1]; print $0; } }' \
|
||||||
|
|||||||
Reference in New Issue
Block a user