读书人

[]solaris上grep怎么实现递归地查找某

发布时间: 2013-01-05 15:20:40 作者: rapoo

[求助]solaris下grep如何实现递归地查找某目录下的文件。
linux好像支持-r -R 参数。

但solaris不支持。

$ grep -R count ./*
grep: illegal option -- R
Usage: grep -hblcnsviw pattern file . . .

$ grep -r count ./*
grep: illegal option -- r
Usage: grep -hblcnsviw pattern file . . .

$ uname -a
SunOS bjxsol3 5.10 Generic i86pc i386 i86pc

怎么解决这个问题呢?
[解决办法]
find . -type f
[解决办法]
xargs grep count

读书人网 >其他服务器

热点推荐