--- pkg-size.orig 2004-02-03 14:51:52.000000000 -0500 +++ pkg-size.orig 2004-02-03 14:52:10.000000000 -0500 @@ -48,7 +48,7 @@ pkgname=`echo $file | sed -e "s:\/var\/db\/pkg\/::" -e "s:\/CONTENTS::"` -totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs du -scb | grep total | cut -f 1` +totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs -r du -scb | grep total | cut -f 1` size=0 for i in $totals ; do