我正在重新格式化一些以xml和所有其他垃圾形式開始的醜陋數據,並將其歸結爲此,但我無法完成此工作。將每第二行轉爲列
我想轉:
BPSD-41
Admin Summary: Page does not finish loading
BPSD-49
Mobile: Activity Section: Does not finish loading
BPSD-50
Fix bug in staging
到這一點:
BPSD-41 : Admin Summary: Page does not finish loading
BPSD-49 : Mobile: Activity Section: Does not finish loading
BPSD-50 : Fix bug in staging
我敢打賭有一個非常優雅的awk的解決方案,但我不能找到它...
對於一次性,在vim中你可以這樣做:':%s/\([0-9] \)\ n/\ 1:/ g' –
先生,您是一位學者和紳士。 –