I was trying to search in man find
, and I would like to know what's going on.
$ man find | grep Like
Like -lname, but the match is case insensitive. This is a GNU
Like -name, but the match is case insensitive.
Like -path, but the match is case insensitive.
Like -regex, but the match is case insensitive.
Like -name, but the contents of the symbolic link are matched
$ man find | grep "\-name"
find / \! -name "*.c" -print
find /usr/src -name CVS -prune -o -depth +6 -print
find /usr/src -name CVS -prune -o -mindepth 7 -print
$ man find | grep "name,"
and there is no such group name, then gname is treated as a group
and there is no such user name, then uname is treated as a user
What's going on? How come I can see lines that contain -name,
but I don't get those results if I search for -name
or name,
and why does that show different things? I imagine it has to do with some “metadata” in man page not shown in the terminal, but I don't know.
gnu grep 3.3
, the results ofgrep 'name'
are much more compared togrep '\-name'
and includes all the results provided by'\-name'
. I suppose this behavior you encounter is in your grep implementation. – George Vasiliou Feb 04 '19 at 20:06grep 'name,'
. – Manuel Feb 04 '19 at 21:32