Hello Haven't been on in a while been doing lots of stuff and learning
Im making a mod for fallout new vegas on the 360 and need a batch file that will
1.look at each line in a txt file and ignore lines without the prase "WEAP"
2.copy the first 8chars into a new txt file line per line
and the data in the txt file its copying from looks like this:
01004746 NVDLC03PlayerTrunk CONT Trunk
01009701 NVDLC03WeapProtonAxeInversal WEAP Protonic Inversal Axe
01006DB3 NVDLC03SLVillageBorousBINT CELL Basement
0100A130 NVDLC03WeapGlovesCorrosive WEAP Corrosive Glove
I know i will need to use delims and tokens but those are my weak points
so if anyone could help me There would be many thanks
I believe the script would go along the lines of:
@echo off
for /F "tokens=1" %%i in (file.txt) do echo %%i>output.txt
Problem being I don't know how to filter out the unnecessary things