On Sat, May 24, 2008 at 11:22 AM, Robin Atwood <[EMAIL PROTECTED]> wrote: > Regexs are not my strong point! I am trying to get a list of service scripts > that provide virtual services. Each such script contains a line like: > > provide dns > > i.e. the line starts with one or more spaces, followed by the text "provide", > followed by one or more spaces and a single word. i have come up with: > > grep -e ^\s+provide\s+\w /etc/init.d
Right now you are saying: match one or more spaces in the begining followed by provide followed by one or more spaces followed by *one* word followed by one space and followed by /etc/init.d I think you mean: grep -e ^\s+provide\s+\w+ /etc/init.d > > but, as usual, nothing is matched. What am I doing wrong? > > TIA > -Robin > > > > > > > > > > > > > -- > gentoo-user@lists.gentoo.org mailing list > > -- gentoo-user@lists.gentoo.org mailing list