I have a manpage, and I want to find something in a specific section. Grep is having a hard time, and I figured out the issue was headings have control characters in them, e.g.
cat -e, learned that one today as well)
Been playing with many variants of grep & sed, using character classes and other techniques and just haven't been able to nail it.
Any suggestions how best to return, say "everything in the SEE ALSO section"? That should be generic enough to be useful to others, but specific enough for a detailed answer. :)
Note that I don't actually want help with
man, because in this case, the output is getting generated by another command, like say
aws help which pipes through to less.