1 |
On Monday 26 June 2006 10:45, Jure Varlec wrote: |
2 |
> sed -r 's/-[^-]+(-r[0-9]+)*$//' |
3 |
|
4 |
This was exactly what I was looking for. Since the following command did not |
5 |
produce any relevant output I can confirm that this works for everything |
6 |
currently in portage. |
7 |
|
8 |
# cd /usr/portage && \ |
9 |
find . -name '*.ebuild' | sed -e 's/\.ebuild$//' | \ |
10 |
awk -F/ '{print $2"/"$4}' | sed -r 's/-[^-]+(-r[0-9]+)*$//' | \ |
11 |
awk -F/ '{system("eix -C "$1" -e "$2" -c | grep -q ^Found\\ 1\\ matches || \ |
12 |
echo "$0)}' |
13 |
|
14 |
Thank you to everyone who replied. :) |
15 |
|
16 |
-- |
17 |
Bo Andresen |