zsh:funcs:finddup: Add TODO to use CRC instead md5

This commit is contained in:
2022-12-28 01:56:55 +01:00
parent b38e01c72a
commit 6bb26ac2fd

View File

@@ -556,6 +556,8 @@ finddup() {
# print duplicates
# TODO: Fix duplicate lines output in the awk script that currently `sort
# -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 '{}' '+' \
| sort \
| awk '{ if (!_[$1]) { _[$1] = $0 } else { print _[$1]; print $0; } }' \