有一 csv 文件,以“,” 分割,共有47列
想导出这些列 1,14,26,38,40,42 重新生成一个 csv 文件,但是貌似 for /f "skip=1 tokens=1,14,26,38,40,42 delims=," %%a in (test.csv) do ………… 是不成功的,因为 tokens 好像最大只能处理31个令牌。
目前的思路,是先获取 1,14 列和 26列之后的,然后再处理 获得的 26列以后的字符……,感觉蛮麻烦的。找了找 第三方库,也没找到合适的第三方程序。
请高手帮忙指教,谢谢
这是前几行的,后面还有一些:- ,/lpc/it8620e/control/0,/lpc/it8620e/control/1,/lpc/it8620e/control/2,/lpc/it8620e/voltage/0,/lpc/it8620e/voltage/1,/lpc/it8620e/voltage/2,/lpc/it8620e/voltage/3,/lpc/it8620e/voltage/4,/lpc/it8620e/voltage/5,/lpc/it8620e/voltage/6,/lpc/it8620e/voltage/7,/lpc/it8620e/voltage/8,/lpc/it8620e/temperature/0,/lpc/it8620e/temperature/2,/lpc/it8620e/fan/0,/intelcpu/0/load/1,/intelcpu/0/load/2,/intelcpu/0/load/3,/intelcpu/0/load/4,/intelcpu/0/load/0,/intelcpu/0/temperature/0,/intelcpu/0/temperature/1,/intelcpu/0/temperature/2,/intelcpu/0/temperature/3,/intelcpu/0/temperature/4,/intelcpu/0/clock/1,/intelcpu/0/clock/2,/intelcpu/0/clock/3,/intelcpu/0/clock/4,/intelcpu/0/power/0,/intelcpu/0/power/1,/intelcpu/0/power/2,/intelcpu/0/power/3,/intelcpu/0/clock/0,/hdd/0/temperature/0,/hdd/0/load/0,/hdd/1/temperature/0,/hdd/1/load/0,/hdd/2/temperature/0,/hdd/2/load/0,/hdd/3/temperature/0,/hdd/3/load/0,/hdd/4/temperature/0,/hdd/4/load/0,/hdd/5/temperature/0,/hdd/5/load/0
- Time,Fan Control #1,Fan Control #2,Fan Control #3,Voltage #1,Voltage #2,Voltage #3,Voltage #4,Voltage #5,Voltage #6,Voltage #7,Standby +3.3V,VBat,Temperature #1,Temperature #3,Fan #1,CPU Core #1,CPU Core #2,CPU Core #3,CPU Core #4,CPU Total,CPU Core #1,CPU Core #2,CPU Core #3,CPU Core #4,CPU Package,CPU Core #1,CPU Core #2,CPU Core #3,CPU Core #4,CPU Package,CPU Cores,CPU Graphics,CPU DRAM,Bus Speed,Temperature,Used Space,Temperature,Used Space,Temperature,Used Space,Temperature,Used Space,Temperature,Used Space,Temperature,Used Space
- 05/24/2024 00:03:59,,,,0.156,2.04,2.052,2.04,0.012,1.728,1.512,3.384,3.048,28,23,1912.18127,7.69230747,41.53846,16.9230766,6.153846,18.07692,31,28,21,26,31,800.0051,800.0051,800.0051,800.0051,7.07779026,0.8458846,0.002768853,2.3195765,100.000641,27,28.538063,42,97.98176,39,49.0412674,43,97.9916458,30,88.13136,32,90.882576
- 05/24/2024 00:08:59,,,,0.420000017,2.04,2.052,2.04,0.012,1.728,1.512,3.384,3.048,28,23,1912.18127,32.30769,7.69230747,16.9230766,3.076923,14.9999981,31,29,21,25,31,800.004761,800.004761,800.004761,800.004761,6.94404268,0.880736053,0.002829046,2.232779,100.000595,27,28.5380554,42,97.98176,39,49.0412674,43,97.9916458,30,88.13136,32,90.882576
- 05/24/2024 00:13:59,,,,0.744,2.04,2.052,2.04,0.012,1.728,1.512,3.384,3.048,28,23,1917.61365,16.9230766,0,0,13.8461533,7.69230747,32,28,20,25,31,800.005,800.005,800.005,800.005,5.744312,0.430073529,0.00227422,2.047413,100.000626,27,28.5380554,42,97.98176,40,49.0412674,43,97.9916458,30,88.13136,32,90.882576
复制代码
|