In grep
, when I try to find a pattern in the man
page, the pattern is treated as the option of grep
if it starts with -
. For example, I find someone is using uname -r
and I wonder what does -r
means for uname.
uname --help | grep '-r'
But I got the following error,
Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information.
Seems as if -r
is treated as an option for grep
.