Wednesday, 15 June 2011

list - Copying Specific Lines To a .txt File -



list - Copying Specific Lines To a .txt File -

ok, using 'ipconfig /displaydns' display websites visited (since lastly 'ipconfig /flushdns') , re-create just website's url websites.txt. typical layout of output is:

ocsp.digicert.com ---------------------------------------- record name . . . . . : ocsp.digicert.com record type . . . . . : 5 time live . . . . : 17913 info length . . . . . : 4 section . . . . . . . : reply cname record . . . . : cs9.wac.edgecastcdn.net badge.stumbleupon.com ---------------------------------------- record name . . . . . : badge.stumbleupon.com record type . . . . . : 1 time live . . . . : 39560 info length . . . . . : 4 section . . . . . . . : reply (host) record . . . : 199.30.80.32 0.gravatar.com ---------------------------------------- record name . . . . . : 0.gravatar.com record type . . . . . : 5 time live . . . . : 2047 info length . . . . . : 4 section . . . . . . . : reply cname record . . . . : cs91.wac.edgecastcdn.net

but, wish have

ocsp.digicert.com badge.stumbleupon.com 0.gravatar.com

as output. ideas on how that, using windows rt device, external applications not alternative , output 10 times longer that, , not records same.

use powershell:

ipconfig /displaydns | select-string 'record name' | foreach-object {$_ -replace "record name . . . . . :", ""}

list batch-file

No comments:

Post a Comment