1、普通版

    sed -i "s/zhangsan/lisi/g" `grep zhangsan -rl /www`

2、适用于内容中带有“/”

    sed -i "s#python3#/usr/local/bin/python3#g" `grep python3 -rl *.sh`


Logo

更多推荐