LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 735|回复: 7

关于grep的一个问题?

[复制链接]
发表于 2006-3-6 21:58:32 | 显示全部楼层 |阅读模式
有如下代码:



  1. bash# man bash | egrep '^SYNOPSIS'
  2. bash# (nothing echo back)

复制代码


不知道为什么,请大家指教
发表于 2006-3-7 05:07:56 | 显示全部楼层
Post by johnny_jiang
有如下代码:



  1. bash# man bash | egrep '^SYNOPSIS'
  2. bash# (nothing echo back)

复制代码


不知道为什么,请大家指教
  1. man bash | egrep '^SYNOPSIS'
  2. Reformatting bash(1), please wait...
  3. SYNOPSIS
复制代码
I have something returning back.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-7 08:55:24 | 显示全部楼层
Post by yongjian
  1. man bash | egrep '^SYNOPSIS'
  2. Reformatting bash(1), please wait...
  3. SYNOPSIS
复制代码
I have something returning back.


Is it related to certain bash version? I can't get anything returned.

So weird.
回复 支持 反对

使用道具 举报

发表于 2006-3-7 13:18:49 | 显示全部楼层
I have nothing to return back  too.
回复 支持 反对

使用道具 举报

发表于 2006-3-8 00:38:25 | 显示全部楼层
bash                                      3.1-2ubuntu6
man-db                                    2.4.3-3
grep                                      2.5.1.ds2-4
回复 支持 反对

使用道具 举报

发表于 2006-3-8 03:16:28 | 显示全部楼层
我这里也没东西,,这个应该是 man 生成文件的差异,/etc/man.conf 里边是怎么写的?
我的:
NROFF           /usr/bin/nroff -Tlatin1 -mandoc
回复 支持 反对

使用道具 举报

发表于 2006-3-8 04:04:12 | 显示全部楼层
hmm.. interesting. I don't have that file.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-8 08:28:19 | 显示全部楼层
Post by yongjian
hmm.. interesting. I don't have that file.


I don't,either.

bash-3.0-15
man-2.4.1-221
grep-2.5.1a-4
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表