找出文件中包含指定字段的文件的shell脚本
摘要:复制代码代码如下:#!/bin/bashfind/-name"*.php">list.txtf=`cat./list.txt`fornin$...
复制代码 代码如下:
#!/bin/bash
find / -name "*.php" > list.txt
f=`cat ./list.txt`
for n in $f
do
r=`egrep 'abc' $n`
if [ ! "$r" = "" ] ; then
echo $n
fi
done
【找出文件中包含指定字段的文件的shell脚本】相关文章:
★ fedora16英文环境下支持中文输入法的方法介绍(图)
上一篇:
freebsd网卡安装与dhcp配置方法
下一篇:
Linux tcpdump操作命令详解