我有一个包含几十万行、单列、没有空格、没有引号、没有逗号的 CSV 文件。
line1
line2
line3
line4
我需要将其拆分为 1 列,但每行最多包含 50 行,用逗号分隔。
所以:
line1,line2,line3,line4 all the way to line50
line51,line52,line53, all the way to line100
line101,line102,line103 all the way to line150
直到用 CSV 完成。
我有 FFE、CSVTOOLS,我正在运行 linux,所以真的更喜欢 linux 方法。这绝对是我的头,所以请帮忙,谢谢。