Suppose I want to know the usage of -i
switch in grep
command without scrolling. I need the specification just for that command or at least see the screen show that first. So how? As you can say that in general not just for grep -i
.
Ubuntu – grep the man page of a command for hyphenated options
command linemanpage
Best Answer
Try this simple
sed
command,Explanation:
It will print the line which contains the search pattern along with 2 lines which present just below to the search pattern line.
OR
You can simply give only the flags in the search patten like below.
You can add this script to your
.bashrc
($HOME/.bashrc
) for quick access: