0

我有一个文本文件,我想在其中删除每行 2 个或更多空格字符的组。

这是一行的示例:

Company Management                                      Company Management                                      Company Management Reports                              Shipment - Text                                                                     Program                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

应该是这样的:

Company Management  Company Management  Company Management Reports  Shipment - Text Program

注意:每个“列”前都有一个制表符

注 2:每行有 4 或 5 个“列”

4

1 回答 1

1
sed 's/   *//g' file

.....................

于 2013-04-05T18:44:46.640 回答