sed - print lines beginning with either one char or other char
With either 'r' or 'd':
sed -n '/^r\|^d/p' /etc/passwd
This could be also written as:
sed -n '/^[rd]/p' /etc/passwd