Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-admin
Lists: gentoo-admin: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-admin@g.o
From: "J.A." <HEBLACK@...>
Subject: Re: system audit
Date: Sat, 24 Dec 2005 11:58:35 -0800
Re: [gentoo-admin] system audit

Thanks for the leads.

I found a couple scripts at script repository
which show a lot of dependency and reverse dependency

pkdep --- Removes unused dependencies for packages.
unclepine --- Reverse dependencies tool.

Now the small problem I have here is not being able
to enter some regular expressions into the command
line under bash.

Any regex containing ! or | operators seem to get
interpreted by bash as a bash operator. This could
be avoided by putting the regex into a (perl?) file
but then I would have to memorize a bunch of stupid
little file scripts or create a stupid little file
containing the script every time.

Here is one little example that doesn't work:

# Filter everything except lines containing
# token1 or token2
locate something | grep token1|token2

# Do not display lines with token3:
locate something | grep !token3

grep has a -v option which is the same as a regex
!token3 but I can't figure out how to then get grep
to recognize inverting more than one token such as

The examples above are trying to filter
administrative commands so that the output is easier
to scroll through.

For instance locate is an administrative command
since it can only be run from root. That is why I am
posing this here to this mail list. The gentoo-users
list is flooded with too many emails. If the
question involves root then should it not be sent
here instead of to gentoo-users?

Thanks. Can anybody help filter output on the
command line? I did a lot of searching already.


gentoo-admin@g.o mailing list

Re: system audit
-- Lares Moreau
Re: system audit
-- Radoslaw Dlugosz
system audit
-- J.A.H.
Re: system audit
-- Alex
Lists: gentoo-admin: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: system audit
Next by thread:
Re: system audit
Previous by date:
Build error help
Next by date:
Re: system audit

Updated Jun 17, 2009

Summary: Archive of the gentoo-admin mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.