livecd-rootfs (0.39) gutsy; urgency=low

* Print the file size in fdupes output as well.

 -- Matthias Klose <doko@ubuntu.com>  Thu, 04 Oct 2007 12:28:27 +0200
ubuntu/precise
Matthias Klose 17 years ago
parent b999d7424b
commit c1a8595479

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (0.39) gutsy; urgency=low
* Print the file size in fdupes output as well.
-- Matthias Klose <doko@ubuntu.com> Thu, 04 Oct 2007 12:28:27 +0200
livecd-rootfs (0.38) gutsy; urgency=low
* Avoid the ${ROOT} prefix in fdupes output, compact and sort the output.

@ -384,11 +384,11 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
# search for duplicate files, write the summary to stdout,
if which fdupes >/dev/null 2>&1; then
echo "first line: <total size for dupes> <different dupes> <all dupes>"
echo "data lines: <size for dupes> <number of dupes> <filename> [<filename> ...]"
echo "data lines: <size for dupes> <number of dupes> <file size> <filename> [<filename> ...]"
echo BEGIN fdupes
(cd $ROOT \
&& fdupes --recurse --noempty --sameline --size --quiet usr \
| awk '/bytes each/ {s=$1} /^usr/ { n+=1; n2+=NF-1; sum+=s*(NF-1); print s*(NF-1),size, NF, $0 } END {print sum, n, n2}' \
| awk '/bytes each/ {s=$1} /^usr/ { n+=1; n2+=NF-1; sum+=s*(NF-1); print s*(NF-1), NF-1, s, $0 } END {print sum, n, n2}' \
| sort -nr
)
echo END fdupes

Loading…
Cancel
Save