Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] audacity-2.0.5 failed to compile
Date: Thu, 03 Sep 2015 17:22:50
Message-Id: 20150903182232.5d45224d@hactar.digimed.co.uk
In Reply to: Re: [gentoo-user] audacity-2.0.5 failed to compile by Alexander Kapshuk
1 On Thu, 3 Sep 2015 19:16:21 +0300, Alexander Kapshuk wrote:
2
3 > >>> sed -i /libs\//d /var/lib/portage/world
4 > >>
5 > >> After running above I get:
6 > >> sed: -e expression #1, char 7: unknown command: `/'
7 > >>
8 > >> Shouldn't it be:
9 > >> sed -i /libs\/d /var/lib/portage/world
10 >
11 > Enclosing the 'sed' commands in single quotes would do it:
12 >
13 > sed -i '/libs\//d' /var/lib/portage/world
14
15 Yes, I escaped the / with \ for sed but forgot to then escape the \
16 for the shell. The reason for deleting all lines containing libs/ rather
17 than just libs is to only remove entries from a *-libs category.
18
19 Sometimes you can try too hard :(
20
21
22 --
23 Neil Bothwick
24
25 Never ask a geek why, just nod your head and slowly back away