标签:linu shell grep
#!/bin/bash
file=$(find ‘你要找的起始位置’ -type f )
for num in $file
do
if [ -f $num ];
then
grep ‘你要查找的字符‘ $num && echo $num
fi
done
递归的grep
原文地址:http://gogoing.blog.51cto.com/9763598/1699259