1

文件大小可能超过 1GB。我可以写一个脚本,但我想知道是否有一种简单的方法,例如使用 Windows 命令提示符?

4

1 回答 1

1

我使用了以下解决方案:
1. 从 GnuWin32 项目安装 FileUtils 包。
2. 在命令提示符中运行命令:

cut -f<idxColumn> --complement -d,  <inputFile>  >  <outputFile>


例如:

cut -f3 --complement -d, d:/in.csv > d:/out.csv

于 2011-07-17T19:21:35.907 回答