From c1a85954796b2a37ca35db9bd0244e2e88e5039d Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Thu, 4 Oct 2007 13:05:23 +0200 Subject: [PATCH] livecd-rootfs (0.39) gutsy; urgency=low * Print the file size in fdupes output as well. -- Matthias Klose Thu, 04 Oct 2007 12:28:27 +0200 --- debian/changelog | 6 ++++++ livecd.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index b6c42536..18ffbd7d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (0.39) gutsy; urgency=low + + * Print the file size in fdupes output as well. + + -- Matthias Klose 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. diff --git a/livecd.sh b/livecd.sh index 72f67589..ff73cd49 100755 --- a/livecd.sh +++ b/livecd.sh @@ -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: " - echo "data lines: [ ...]" + echo "data lines: [ ...]" 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