|
|
|
|
|
|
|
|
txt
[root@localhost ~]# more ~/message0508.txt
上面的例子,是我们首先用 cat 来查看/var/log/message 的内容,然后抽取带有 May 8字样的行,然后输出到用户家目录下的 message0508.txt文件中,然后再用more来查看message0508.txt文件内容;
从一个输出结果中查找
我们也可以从一个输出的结果中查找所需要的内容,请看下面的例子;
[root@localhost ~]# ls -lh
总计 24M
-rwxr-xr-x 1 root root 545 04-25 11:21 adduml02.sh
-rwxr-xr-x 1 root root 545 2004-01-18 adduml.sh
-rw-rw-rw- 1 root root 0 04-25 14:26 dood
drwxr-xr-t 2 root root 页码:[1] [2] [3] [4] [5] 第2页、共5页 |
|
|
|
|
设为首页 | 加入收藏 | 广告服务 | 友情链接 | 版权申明
Copyriht 2007 - 2008 © 科普之友 All right reserved |