mkrahmeh
July 7th, 2008, 11:24 PM
usually i use grep to search long man pages for certain options rather than going through the whole manual..however when i need to view the part related to certain option, grep interprets that option as its own which causes unexpected behaviour or displaying available options for grep..for instance i need to check what -r exactly does in userdel as in
man userdel | grep -r
now grep modifies its behaviour accordingly, but i need it to search for -r in the man page instead..
man grep | grep exact
ddnt really help :)
any suggestions ??
man userdel | grep -r
now grep modifies its behaviour accordingly, but i need it to search for -r in the man page instead..
man grep | grep exact
ddnt really help :)
any suggestions ??