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:
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.
There are 2 alternatives - vote for the best!
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.
If you can do better, submit your command here.
You must be signed in to comment.