Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
16a8e1c4d1
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      misc/archive/showsizes.sh

+ 22
- 0
misc/archive/showsizes.sh

@ -0,0 +1,22 @@
#!/bin/bash
if [ $1 ] ; then
case $1 in
-help)
echo "Useage: $0 [ -path <part of a path> ]"
exit 1;
;;
-path)
FLISTGREP="$2";
shift; shift;
;;
esac
fi
if [ -n "$FLISTGREP" ] ; then
FILES=`grep -l -- "$FLISTGREP" /var/adm/flists/* | sed -e 's,^/var/adm/flists,/var/adm/packages,'`
else
FILES=`ls /var/adm/packages/*`
fi
grep '^Package Size: ' $FILES | sed -e 's,^.*/\(.*\):Package Size: \(.*\) MB.*,\2 \1,' | sort -n

Loading…
Cancel
Save