From: | Robin Atwood <robin.atwood@×××××××××.net> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Need help with a regex | ||
Date: | Sat, 24 May 2008 15:54:53 | ||
Message-Id: | 200805242254.46379.robin.atwood@attglobal.net | ||
In Reply to: | Re: [gentoo-user] Need help with a regex by Alan McKinnon |
1 | On Saturday 24 May 2008, Alan McKinnon wrote: |
2 | |
3 | > "grep -e" is not the same thing as "egrep" or "grep -E", and |
4 | > I never managed to get \s to work as a synonym for [[:space:]] |
5 | |
6 | I was wondering about that! |
7 | |
8 | > Plus you need a proper file glob i your file spec |
9 | That was a typo in my post. |
10 | |
11 | > Try: |
12 | > egrep '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* |
13 | |
14 | Thanks, I am in business now. |
15 | |
16 | Cheers |
17 | -Robin |
18 | -- |
19 | gentoo-user@l.g.o mailing list |