ChinaUnix.net
相关文章推荐:

grep SimSunlog 没有那个文件或目录

怎样用grep获得子目录文件列表

by ste2008 - Perl - 2007-01-29 17:12:46 阅读(2024) 回复(8)

相关讨论

各位大侠: * 代表任意字符串 $ 什么意思 ^什么意思 {}什么意思 例:grep m * (在当前目录下 找含m的文件) grep '^m' *什么意思 还有^$ ,/035 ,{} grep 的带-E参数(好像不能用) 用man grep 发现grep有两个,在不同目录下,那这两个grep一样吗? 我怎么知道我在任意目录下用的是哪一个grep? 我的操作系统是Solaris5.8 请各位大侠帮忙!!! SOS!!SOS!!!SOS!!!S...

by wuwuuse - Solaris - 2004-02-18 11:14:08 阅读(1310) 回复(3)
by pro21ms4 - Shell - 2007-05-27 13:53:53 阅读(1645) 回复(2)

我想用grep查找哪些文件包含指定字符串,想让这个操作能遍历所有子目录下的文件,不知该如何写?谢谢大家

by Jass - Shell - 2009-03-03 21:30:40 阅读(19932) 回复(6)

比如:grep "10.233.1.10" * 这样用,它不搜子目录! 如何能能遍历整个目录级子目录的所有文件??? 我想找出包括10.233.1.10 的所有文件!! 谢谢了!!帮帮我

by mqh6784577 - 其他UNIX - 2007-11-05 11:13:06 阅读(4885) 回复(2)

问题:通过下面命令可以把结果输出到文件里 vmstat > /file top |tee -a /file 可是下面却不行, vmstat 1 >/filevmstat 1 |tee -a /file top -d 1| grep Mem |tee -a /filetop |grep Mem >/file 请教如何把vmstat 1top | grep Mem 的结果输出到文件里?

by 明月清风 - Shell - 2004-09-27 19:14:18 阅读(4532) 回复(5)

而不仅仅是文件名。是要查找文件内容。 在Linux中可以用-r参数,但是Solaries8中的grep没有这个参数。谢谢。

by scottding - Solaris - 2005-10-07 20:03:06 阅读(1996) 回复(4)

请问如何用grep命令来匹配指定目录下所有的文件(包括子目录下的文件

by Blueway11 - HP-UX - 2004-11-12 09:06:37 阅读(1678) 回复(3)

为什么会这样?同样的命令grep -s echo 有的能够得到文件属性,有的就不可以? [root@redhat73 virus]# grep -s echo /bin/* Binary file /bin/ash matches Binary file /bin/ash.static matches Binary file /bin/bash matches Binary file /bin/bash2 matches Binary file /bin/bsh matches Binary file /bin/csh matches Binary file /bin/echo matches Binary file /bin/ex matches Binary file /bin/gettext matches /bin/i...

by coolc - Shell - 2003-08-13 13:12:40 阅读(878) 回复(1)

比如 我想在/root目录及其所有子目录下查找包含"work"字符串的文本文件 直接使用grep命令可以实现吗?还是必须得自己编写个脚本?

by jakee304 - 系统管理 - 2006-05-31 10:17:07 阅读(875) 回复(5)

比如如下日志,我需要过滤出第4列等于192.168.0.22的所有行,如何实现? Apr 16 16:12:07 localhost sshd(pam_unix)[8344]: session opened for user root by root(uid=0) Apr 16 16:16:39 192.168.0.22 sshd(pam_unix)[26583]: session opened for user root by (uid=0) Apr 16 16:18:35 localhost nagios: Caught SIGTERM, shutting down... Apr 16 16:18:35 localhost nagios: Successfully shutdown... (PID=748) Apr 16 16:18...

by yindows - Shell - 2007-05-11 15:18:32 阅读(4450) 回复(14)