On Wednesday 15 December 2010 19:24:22 Pau Peris wrote:
> n=`wc -l /var/lib/portage/world|awk '{ print $1 }'`;
> for i in `seq 1 $n`;do
> pkg=`cat /var/lib/portage/world|head -n$i|tail -n1`;
> echo -e "Packages depending on $pkg." >> /tmp/auditWorldFile.log
> equery d $pkg >> /tmp/auditWorldFile.log
> echo -e "" >> /tmp/auditWorldFile.log
> done;
or without the counting loop:
while read pkg; do
echo ....
done < /var/lib/portage/world
;-)
--
Gruß | Greetings | Qapla'
Beamy, Scot me up!

