huynhgiang

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    huynhgiang
    Member
    in reply to: Search by substring and extract string #392022

    Here is a snippet of the text file:

    03/05/2018 15:25:11 0A00 PACKET 0000000D9E9A8120 UDP Rcv 10.100.82.45 08c2 Q [0001 D NOERROR] A (9)localhost(0)

    03/05/2018 15:25:11 0A04 PACKET 0000000D9F97E150 UDP Rcv 10.100.82.45 093b Q [0001 D NOERROR] AAAA (9)localhost(0)

    03/05/2018 15:25:11 0A00 PACKET 0000000DA0426150 UDP Rcv 10.100.82.45 d652 Q [0001 D NOERROR] AAAA (4)env6(10)

    03/05/2018 15:25:11 0A04 PACKET 0000000D9D3580A0 UDP Rcv 10.100.82.45 b9f5 Q [0001 D NOERROR] A (4)env6(10)

    03/05/2018 15:25:11 0A04 PACKET 0000000D9FE84240 UDP Rcv 10.100.1.81 5906 Q [0001 D NOERROR] A (5)axtel(3)net(8)c22fc498(3)ubl(5)dnsbl(10)borderware(3)com(0)

    I am trying to extract every entry that has the substring “axtel” in it for debugging purposes and unfortunately I gave up and deleted the script I was using. I was using the Select-String cmdlet along with the Pattern parameter. One issue is that the text file is being updated regularly and the entries will be random where they appear.

Viewing 1 post (of 1 total)