awk opposite of split

后端 未结 5 948
执笔经年
执笔经年 2021-01-12 04:03

what would be an opposite of split() in awk? Imagine I have array containig characters/integers.

What I\'ve tried:

color =          


        
5条回答
  •  耶瑟儿~
    2021-01-12 05:01

    Knowing that the opposite of split() is join(), a mere Google Search gives me this page, which seems to contain the solution : http://www.gnu.org/software/gawk/manual/html_node/Join-Function.html . It joins all the elements of an array together, and returns the corresponding string.

    ['f','o','o'] => "foo"
    

    Have fun

提交回复
热议问题