重新格式化一个txt文件

lin*_*ux1 0 text-processing

我有一个这种格式的文本文件:

A  B  C  D  E  F
Run Code Online (Sandbox Code Playgroud)

我想以这种方式改变它:

B  A:D
Run Code Online (Sandbox Code Playgroud)

并摆脱其他列。

jes*_*e_b 6

使用awk

awk '{print $2,$1":"$4}' file.txt
Run Code Online (Sandbox Code Playgroud)