我有一个文件如下:
Country: USA
Currency: Dollars
Country: Canada
Currency: Canadian
Dollars
Country: Australia
Currency: Australian
Dollars
Country: France
Currency: Euro
我必须合并这两行并获得如下输出:
Country: USA
Currency: Dollars
Country: Canada
Currency: Canadian Dollars
Country: Australia
Currency: Australian Dollars
Country: France
Currency: Euro
我尝试使用tr
空格替换换行符,但是没有用。有人可以帮忙吗。
谢谢。