I have a text file which contains several hundred lines e.g.
test.bin:8948549854958
They are all styled like the above file (xxxxxxx.xxx:xxxxxxxxxxxxxx
)
Is there any way I could trim all lines e.g. take :xxxxxxxxxxxxxxx
of the line, so just to leave xxxxxxx.xxx
?
Trim.bat:
@FOR /F "tokens=1 delims=:" %%G IN (%1) DO @echo %%G
Usage: trim source.txt > destination.txt
See here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With