Whenever I search the manpages, I'm almost always trying to find out what's going on with a specific flag. For example, when searching the man pages for pandoc I was searching the for -f flag. I'm not sure how to say, quickly get to the flag which is here:
OPTIONS
General options
-f FORMAT, -r FORMAT, --from=FORMAT, --read=FORMAT
and filter out stuff like:
iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
or
pandoc -f markdown -t latex hello.txt
I've tried searching for /-f, and I've looked at another post and tried (^|\s)-f($|\s\) but it was invalid. So I'm wondering how do you quickly search less for "only the flag -f"?
Would love your thoughts or some other tool that you use to quickly go through documentation
-fwith the space helps, but then I tried reading the reading the man pages forgrepto figure out what-Awas and missed it because grep usesDESCRIPTIONto put it's flags instead of OPTIONS ;). Is there any rhyme or reason for when a command uses one or the other? Also I like piping the help into grep, I'm going to mess around with it more, and maybe make a script out of it, would love your feedback when I do