I have a file with 12 columns separated by ?
I need to export column number 12 (NetBIOS Name) and append the whole row to a CSV file. Skip the first line that is the column description.
The first 4 lines af the CSV file expored from a SCCM Query:
Name SMS Assigned Sites IP Addresses IP Subnets Operating System Name and Version Resource Domain Or Workgroup Last Logon User Domain Last Logon User Name SMS Unique Identifier Resource ID Resource Type Netbios Name
F101-03123D "SIC" "172.18.1.101" "172.18.1.0" Microsoft Windows NT Workstation 5.1 SI SI aalmo06 GUID:00003D0D-A754-47ED-B2EA-D29D1C4A4124 3509 System A202-E1210A
F112-02478D "SIC" "169.254.222.155"; "172.18.2.21" "169.254.0.0"; "172.18.2.0" Microsoft Windows NT Workstation 5.1 SI SI aafebep GUID:A4768DE7-E3CA-42B3-90A4-3502B2F04364 3510 System A234-A1720000B
B567-03565D "SIC" "172.21.212.6" "172.21.212.0" Microsoft Windows NT Workstation 5.1 SI SI aabibru GUID:F81E25B7-0074-457A-9E98-1A611208D28B 5438 System C856-153AE22
The result/output CSV file:
A202-E1210A
A234-A1720000B
C856-153AE22
etc...
I have something like:
FOR /F "tokens=12 delims= skip=1 " %%G IN (allsystems.csv) DO @echo %%G
But what delimiters should I use here?