查找打包
find ./ -name settings.py | xargs tar -czvf settings.tar.gz
mkdir test
tar -zxvf settings.tar.gz -C ./test
批量查找过滤脚本
#!/bin/bash
pyfile=`find ./ -name settings.py`
for ifile in $pyfile
do
echo $ifile `cat $ifile | grep scrapy_redis` | egrep -v "#|^$" 2>/dev/null >>out_scrapy_redis.txt
done
来源:CSDN
作者:tangbin0505
链接:https://blog.csdn.net/tangbin0505/article/details/103936013