On Thu, Sep 3, 2015 at 6:33 PM,  <[email protected]> wrote:
>
> On 09/03/2015 09:26 AM, [email protected] wrote:
>> On 09/03/2015 08:28 AM, Neil Bothwick wrote:
>>> On Thu, 03 Sep 2015 07:56:33 -0600, [email protected] wrote:
>>>
>>>> Here is /var/lib/portage/world
>>>
>>> This contains quite a lot of libraries. As a rule of thumb, you should
>>> rarely have libraries in world as you don't use them - the software you
>>> have in world uses them. You can quickly clean them out with
>>>
>>> sed -i /libs\//d /var/lib/portage/world
>>
>> After running above I get:
>> sed: -e expression #1, char 7: unknown command: `/'
>>
>> Shouldn't it be:
>> sed -i /libs\/d /var/lib/portage/world

Enclosing the 'sed' commands in single quotes would do it:

sed -i '/libs\//d' /var/lib/portage/world

Reply via email to