linux sed怎么换行,使用SED在文件中插入换行
我有一个文本文件中所有灰熊步主机的转储。下面是该文件的样子:使用SED在文件中插入换行(Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: ne
我有一个文本文件中所有灰熊步主机的转储。下面是该文件的样子:使用SED在文件中插入换行
(Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89..b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d (Table: network_objects) Name: Bad-Host_89.b.c.d
正如你可以看到,它的一个大巨头运行上。我想使用sed来匹配(T并在匹配的字符串之前插入一个换行符。基本上我想输出看起来像这样:
(Table: network_objects) Name: Bad-Host_89..b.c.d
(Table: network_objects) Name: Bad-Host_89..b.c.d
...
更多推荐
所有评论(0)