0

下面是我的批处理脚本的 crud 输出

"kxip12","triss-s16-vm","","triss-db02-vm","false","true","false","MySQL","false"," "," ","PTROWEUTIL","PTROWETP","false","172.17.6.167:7081,172.17.6.248:7081,172.17.1.93:7081,172.17.6.167:7081","64","18","18","512"," "," ","true","FOO","BAR","RAID:12345",""," ","","tp.cfg:TP.remotedInterface.active=FALSE","tp.cfg:TP.LoopBackDestination.Count=1","tp.cfg:TP.trading.orderHistoryReflected=true","tp.cfg:TP.glueInterface.acceptorService_tcp=gatedev28z3.itgssi.com:32101","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""

我只想"kxip12"作为o/p。我在 bash 中寻找类似于 awk 的东西。

4

2 回答 2

5

试试这个:

(for /f "delims=," %%a in (file.csv) do echo(%%a)>filenew.csv

您最好在 Windows 上使用 awk

于 2013-07-17T16:52:48.467 回答
0
for /f %%a in (%str%) do set first=%%a
set first=%first:"=%
于 2013-07-17T16:39:24.900 回答