Gentoo Archives: gentoo-user

From: Robin Atwood <robin.atwood@×××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Need help with a regex
Date: Sat, 24 May 2008 15:22:38
Message-Id: 200805242222.30190.robin.atwood@attglobal.net
1 Regexs are not my strong point! I am trying to get a list of service scripts
2 that provide virtual services. Each such script contains a line like:
3
4 provide dns
5
6 i.e. the line starts with one or more spaces, followed by the text "provide",
7 followed by one or more spaces and a single word. i have come up with:
8
9 grep -e ^\s+provide\s+\w /etc/init.d
10
11 but, as usual, nothing is matched. What am I doing wrong?
12
13 TIA
14 -Robin
15
16
17
18
19
20
21
22
23
24
25
26
27 --
28 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Need help with a regex Andrey Falko <ma3oxuct@×××××.com>
Re: [gentoo-user] Need help with a regex Etaoin Shrdlu <shrdlu@×××××××××××××.org>
Re: [gentoo-user] Need help with a regex Alan McKinnon <alan.mckinnon@×××××.com>
Re: [gentoo-user] Need help with a regex Wolf Canis <wolf.canis@××××××××××.com>
Re: [gentoo-user] Need help with a regex Wolf Canis <wolf.canis@××××××××××.com>