linux sed 替换多文件字符串
2021-01-30 tech linux sed 1 mins 92 字
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
例如:
sed -i "s/n1/kelu-n1/g" `ls`
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
例如:
sed -i "s/n1/kelu-n1/g" `ls`