If I do
man bash | grep read -c the output is
218. But I want to search only for colored regex in man. I still haven't find an approach. Any hint is welcome.
man implementation from man-db
MAN_KEEP_FORMATTING=1 man bash | grep -c $'r\bre\bea\bad\bd'
- Grep: unexpected results when searching for words in heading from man page for the background and
- How can I search for bolded or underlined text? for more options.