$ manswitch () { man $1 | less -p “^ +$2″; }

e.g.

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.

View this command to comment, vote or add to favourites
View all commands by dbh

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: