commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
manswitch grep -o
This will take you to the relevant part of the man page, so you can see the description of the switch underneath.
There is 1 alternative - vote for the best!
Find the usage of a switch with out searching through the entire man page.
Usage: manswitch [cmd] [switch]
manswitch grep silent
In simple words
man <cmd> | grep "\-<switch>"
man grep | grep "\-o"
This is not a standard method but works.
If you can do better, submit your command here.
You must be signed in to comment.