windows - String manipulation using batch -
below crud output of batch script
"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","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
i want "kxip12"
o/p. looking similar awk in bash.
try this:
(for /f "delims=," %%a in (file.csv) echo(%%a)>filenew.csv
you should better use awk windows.
Comments
Post a Comment