I'm looking for information on the -X
option of curl
. However, the documentation is quite lengthy and I have to scroll down for quite a long time to get to this option. Instead, I'd like to do something like
man curl | grep -X
to get the line containing "-X". (I would also do this in conjunction with the option -A 10
to get the 10 lines after the match). However, if I try this I get
grep: option requires an argument -- 'X'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Any ideas on how to use grep
together with man
, or more generally on how to search man pages for specific lines?