tokens and delims help extracting different colomns of data from text : Just a quick tip please, if I may. I'm doing some testing with tokens and delims (batch) and have some great code some kind folks whipped up for me. 

This code ..

    for /F "usebackq delims=" %%a in ("hosts.txt") do (
       for %%b in (%%a) do (
          set "hostname=!version!"
          set "version=!last!"
          set "last=%%b"	
    	)
       	echo !hostname! !version!>>"hosts2.txt"
    )

expertly extracts from a text file with content...

    2 Dec 2016 14:37 GMT	194.176.105.139	United Kingdom 	ID006972.CENTRAL	3.10.6.0	Remove
    2 Dec 2016 14:34 GMT	194.176.105.132	United Kingdom 	ID007574.CENTRAL	3.10.6.0	Remove

this data (below)...(for me to then do stuff with)..However, I am interested in knowing how it's doing it? And also how can I alter it to add the IP address colomn aswell. Whats the formula? Is it in hidden metavariables? 

    ID006972.CENTRAL    3.10.6.0    
    ID007574.CENTRAL    3.10.6.0    

e.g how could it be altered to extract it to look like this 

    194.176.105.132  ID007574.CENTRAL    3.10.6.0
    194.176.105.139  ID006972.CENTRAL    3.10.6.0

or even for learning purposes, like this, with the date colomn instead of IP...

    2 Dec 2016 14:37 GMT  ID007574.CENTRAL    3.10.6.0
    2 Dec 2016 14:34 GMT  ID006972.CENTRAL    3.10.6.0

Thanks 