浏览量 4821
2016/11/04 16:15
shell列转行加分隔符
➜ ~ cat a
123
456
222
3312
➜ ~
➜ ~ awk '{printf "%s,",$1}' a
123,456,222,3312,%
➜ sg seq 16396 16405|awk '{printf"%s,",$1}'
16396,16397,16398,16399,16400,16401,16402,16403,16404,16405,%
上一篇 搜索 下一篇