例1: 批量删除某个字符
find -name "*.tcl" -exec sed -i '/sMstpEdge/d' {} \;
例2: 批量替换某个字符
sed -i "s/3924/3924 as5600_52x/g" `grep "3924" -rl *`
例1: 批量删除某个字符
find -name "*.tcl" -exec sed -i '/sMstpEdge/d' {} \;
例2: 批量替换某个字符
sed -i "s/3924/3924 as5600_52x/g" `grep "3924" -rl *`