sed -e "s/^/-A ss_spec_wan_ac &/g" -e "1 i\-N ss_spec_wan_ac hash:net " /jffs/ignore.list 以上这段代码已经实现这样了: -N ss_spec_wan_ac hash:net -A ss_spec_wan_ac 0.0.0.0/8 -A ss_spec_wan_ac 10.0.0.0/8 -A ss_spec_wan_ac 100.64.0.0/10 -A ss_spec_wan_ac 127.0.0.0/8 -A ss_spec_wan_ac 169.254.0.0/16 -A ss_spec_wan_ac 172.16.0.0/12 -A ss_spec_wan_ac 192.0.0.0/24 -A ss_spec_wan_ac 192.0.2.0/24 -A ss_spec_wan_ac 192.88.99.0/24
还有我想在:"-A ss_spec_wan_ac 192.88.99.0/24"下一行添加“ COMMIT ”这个字段,如下: -N ss_spec_wan_ac hash:net -A ss_spec_wan_ac 0.0.0.0/8 -A ss_spec_wan_ac 10.0.0.0/8 -A ss_spec_wan_ac 100.64.0.0/10 -A ss_spec_wan_ac 127.0.0.0/8 -A ss_spec_wan_ac 169.254.0.0/16 -A ss_spec_wan_ac 172.16.0.0/12 -A ss_spec_wan_ac 192.0.0.0/24 -A ss_spec_wan_ac 192.0.2.0/24 -A ss_spec_wan_ac 192.88.99.0/24 COMMIT