How to give space between columns?

前端 未结 4 1812
醉梦人生
醉梦人生 2021-01-27 16:13

I have a text file as shown below.I would like to give a space between the character and number in the fifth column. How can I do this with awk?

cxe  911  bv  he         


        
4条回答
  •  甜味超标
    2021-01-27 16:57

    This is very specific to the format of your data, but it works:

    awk '{print substr($0,1,21)" "substr($0,22)}'
    

提交回复
热议问题