CWD=$(pwd) rm -f full_not_installed cd /var/lib/pkgtools/packages while read -r PKGSHORT; do PKG=$(find . |grep "/${PKGSHORT}-[^-]*-[^-]*-[^-]*$"|sed 's#..##') if [ "$PKG" ]; then printf "%b" "$PKGSHORT: " grep UNCOMP $PKG|sed 's#UNCOMPRESSED PACKAGE SIZE: ##' else echo "$PKGSHORT is not installed" >> $CWD/full_not_installed fi done < $CWD/files-in-initrd/full > $CWD/full_sizes # grep UNCOMP $PKG|sed "s#:UNCOMPRESSED PACKAGE SIZE: ##" #| sed "s#\([^ ]*\) \([^ ]*\)#\2 \1#"|sort -h