Looking at the man page for
grep I noticed there are two different paths to the command. Does this mean I have multiple
grep tools on my system? Are the synopsis lines that have the same path just different usage examples of the same tool? I am using
OS X 10.10.5
NAME grep - search a file for a pattern SYNOPSIS /usr/bin/grep [-bchilnsvw] limited-regular-expression [filename]... /usr/xpg4/bin/grep [-E | -F] [-c | -l | -q] [-bhinsvx] -e pattern_list... [-f pattern_file]... [file]... /usr/xpg4/bin/grep [-E | -F] [-c | -l | -q] [-bhinsvx] [-e pattern_list]... -f pattern_file... [file]... /usr/xpg4/bin/grep [-E | -F] [-c | -l | -q] [-bhinsvx] pattern [file]... DESCRIPTION The grep utility searches text files for a pattern and prints all lines that contain that pattern. It uses a com- pact non-deterministic algorithm.
A follow up question: Where do man pages come from? Are they generated dynamically or are they part of a static installation?