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 metacharacters. 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
signature.asc
Description: OpenPGP digital signature