小编mil*_*ily的帖子

sed/awk: insert commas every nth character

Contents of the files are something like:

12345678123456781234567812345678
12345678123456781234567812345678
Run Code Online (Sandbox Code Playgroud)

I would like to convert these rows to:

12345678,12345678,12345678,12345678
12345678,12345678,12345678,12345678
Run Code Online (Sandbox Code Playgroud)

awk sed comma

3
推荐指数
1
解决办法
3323
查看次数

标签 统计

awk ×1

comma ×1

sed ×1