sed 文件字符串替换 sed -i "s/dhcp/static/g" /etc/network/interfaces dhcp原字符串 static 新字符串 /etc/network/interfaces文件名