小编She*_*lus的帖子

为什么手册页的概要部分中的命令有不同的路径?

查看手册页,grep我注意到该命令有两种不同的路径。这是否意味着grep我的系统上有多个工具?具有相同路径的概要行是否只是同一工具的不同用法示例?我在用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 …
Run Code Online (Sandbox Code Playgroud)

grep man system-installation

4
推荐指数
1
解决办法
173
查看次数

标签 统计

grep ×1

man ×1

system-installation ×1