hi,
can anyone help me with the following, i need to get a data from a text file and write specific contents to excel if the condition exist on the line.
below is the content of my text
----
2019-01-10 13:59:45 Local2.Info 172.16.66.1 Jan 10 13:59:35 stamgr: tac_del_arp:dev=br0 SIOCDARP failed, errno=6 2019-01-10 13:59:45 Local0.Info 172.16.66.1 Jan 10 13:59:35 syslog: eventd_to_syslog():User[08:ae:d6:95:51:c7] leave WLAN[House] at AP[HSE-2F-AP02@1c:b9:c4:20:91:B0] with Session Time[8.30 sec] RX Bytes[4614] TX Bytes[26831]
2019-01-10 13:59:46 Local0.Info 172.16.66.1 Jan 10 13:59:36 syslog: eventd_to_syslog():User[f4:09:d8:c7:e7:cf] joins WLAN[Guest] from AP[Admin@1c:b9:c4:23:cc:6A]
----
and in excel i need to have like this only if "WLAN[Guest]" exist in the line.
Column A Column B
2019-01-10 13:59:45 User[f4:09:d8:c7:e7:cf]
thanks,
can anyone help me with the following, i need to get a data from a text file and write specific contents to excel if the condition exist on the line.
below is the content of my text
----
2019-01-10 13:59:45 Local2.Info 172.16.66.1 Jan 10 13:59:35 stamgr: tac_del_arp:dev=br0 SIOCDARP failed, errno=6 2019-01-10 13:59:45 Local0.Info 172.16.66.1 Jan 10 13:59:35 syslog: eventd_to_syslog():User[08:ae:d6:95:51:c7] leave WLAN[House] at AP[HSE-2F-AP02@1c:b9:c4:20:91:B0] with Session Time[8.30 sec] RX Bytes[4614] TX Bytes[26831]
2019-01-10 13:59:46 Local0.Info 172.16.66.1 Jan 10 13:59:36 syslog: eventd_to_syslog():User[f4:09:d8:c7:e7:cf] joins WLAN[Guest] from AP[Admin@1c:b9:c4:23:cc:6A]
----
and in excel i need to have like this only if "WLAN[Guest]" exist in the line.
Column A Column B
2019-01-10 13:59:45 User[f4:09:d8:c7:e7:cf]
thanks,
Last edited: