-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robin Atwood wrote: > grep -e ^\s+provide\s+\w /etc/init.d > > but, as usual, nothing is matched. What am I doing wrong?
You have to use back slashed versions of meta characters. Following how would do that: $ grep -e '^[[:space:]]\+provide[[:space:]]\+[a-z]\+' /etc/init.d/* /etc/init.d/syslog-ng: provide logger /etc/init.d/vixie-cron: provide cron W. Canis -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkg4dvkACgkQKT9zBKF0twURhwCZAQ/vK1la7X0mTuA2yTyWavqc rEIAn1yr+ytPejcRXMr/d6f/Wkg4SgSc =NQmh -----END PGP SIGNATURE----- -- gentoo-user@lists.gentoo.org mailing list