]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- list by size, show total
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Sep 2010 18:43:36 +0000 (18:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clean-distfiles.sh -> 1.2

clean-distfiles.sh

index 8e9cc7990b6c86bb43a770e954d47a574dedc31a..12abf5eafb751436c56600a60f71524aa3042350 100644 (file)
@@ -7,7 +7,8 @@ dir=$(dirname "$0")
 cd "$dir"
 
 ext=bz2,gz,rar,tgz,tbz2,zip,jar,Z,tar,png,ico,xpm,gif,rpm,bin,run,exe,iso,xpi,ZIP,dll
-ls -ld */*.{$ext}
+ls -ldrSh */*.{$ext}
+echo */*.{$ext} | xargs stat -c %s | awk '{s+=$1} END {printf("Total: %d MiB\n", s/1014/1024)}'
 
 echo remove? ctrl+c to abort
 read a
This page took 0.0387420000000001 seconds and 4 git commands to generate.