Say the file has:
202.185.109.169:3421 - Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) //line 1, all on one line
-> 202.185.109.163:139 (distance 0, link: ethernet/modem) //line 2, all on one line
202.185.109.165:34422 - Linux 2.4/2.6 (up: 1 hrs) //line 3, all on one line
-> 216.136.172.233:80 (distance 0, link: ethernet/modem) //line 4, all on one line
Now I would like to trim it to:
Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222)
(distance 0, link: ethernet/modem)
Linux 2.4/2.6 (up: 1 hrs)
(distance 0, link: ethernet/modem)
Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222)
because I have a page that reads the odd lines of the trimmed file and displays, thus only displays the OS result
Or is there a better way, using file, extract the OS type only, but how? Pls provide an example. THanks