awk opposite of split

后端 未结 5 968
执笔经年
执笔经年 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:08

    Using GNU awk 4.1

    #!/usr/bin/awk -f
    @include "join"
    BEGIN {
       split("#FFFF00", a, "")
       print join(a, 1, length(a), SUBSEP)
    }
    

    https://stackoverflow.com/questions/16529716#16529730

提交回复
热议问题