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