评论: Linux中find常见用法示例

test

Posted by test at January 30, 2007 10:27 AM

这么巧,我刚在看你的贴子,发现这里贴出了我以前整理的find用法,哈哈。不错,我收藏你的blog了。

Posted by cnscn at January 30, 2007 11:04 AM

find . -path "./themes" -prune -o -name "*" -exec grep -l "short_name" {} \;
查找当前目录下除了themes所有文件中包含short_name的文件

筛选log中某天的内容
awk '/06\/Aug\/2010:05:..:../,/07\/Aug\/2010:05:..:../{print $0}' a.log >b.log

Posted by vitter at February 6, 2008 10:53 PM

特殊符号
find . -name "*" -exec fgrep -l 'eval($_POST' {} \;

Posted by vvx at March 24, 2008 11:55 AM
发表评论













记住个人信息?