mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 07:41:31 +00:00
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
This commit is contained in:
parent
b999d7424b
commit
c1a8595479
6
debian/changelog
vendored
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
|
livecd-rootfs (0.38) gutsy; urgency=low
|
||||||
|
|
||||||
* Avoid the ${ROOT} prefix in fdupes output, compact and sort the output.
|
* 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,
|
# search for duplicate files, write the summary to stdout,
|
||||||
if which fdupes >/dev/null 2>&1; then
|
if which fdupes >/dev/null 2>&1; then
|
||||||
echo "first line: <total size for dupes> <different dupes> <all dupes>"
|
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
|
echo BEGIN fdupes
|
||||||
(cd $ROOT \
|
(cd $ROOT \
|
||||||
&& fdupes --recurse --noempty --sameline --size --quiet usr \
|
&& 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
|
| sort -nr
|
||||||
)
|
)
|
||||||
echo END fdupes
|
echo END fdupes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user