Gentoo Archives: gentoo-admin

From: "J.A." <HEBLACK@×××××××××××.COM>
To: gentoo-admin@l.g.o, rdlugosz@×××××××××××××××.pl
Subject: Re: [gentoo-admin] system audit
Date: Sun, 25 Dec 2005 14:37:59
Message-Id: 43AEBC0C.4040304@ISPMONSTERS.COM
In Reply to: Re: [gentoo-admin] system audit by Radoslaw Dlugosz
1 Radoslaw Dlugosz wrote:
2 >
3 >
4 > This works:
5 > $ locate festival | egrep "portage|festival"
6 > Note there are no spaces betwenn the regexps and the |. Otherwise the
7 > space is treated as a part of the regexp.
8
9 Thanks!!! I probably wouldn't have realized the part
10 about the spaces.
11
12 Now when the -v is put infront I can have locate
13 list a lot of the files for an installed package
14 except for the files in var and portage which I do
15 not care about really at this point. The bang (!)
16 operator gets interpreted by bash still. There may
17 be a way to use it though instead of -v in grep.
18
19 ...@tux ~ $ locate festival | egrep -v "var|portage"
20
21
22 --
23 <A HREF="HTTP://HEBLACK.BIZ">HTTP://HEBLACK.BIZ</A>
24 --
25 gentoo-admin@g.o mailing list