我有文件,有行,包含ip with netmask abcd/24 wxyz/32 etc如何删除删除特定行?我正在使用
sed -ie "s#a.b.c.d/24##g" %filname%
但删除后是文件中的空字符串.
它应该在脚本内运行,ip作为参数,也可以在sh下的freebsd中运行.
linux bash awk freebsd sed
awk ×1
bash ×1
freebsd ×1
linux ×1
sed ×1