Aug-15-2019, 07:06 PM
Hi,
I have a txt file that contains 100 ip addresses with one on each line.
Exp of txt file:
1.1.1.1
12.43.123.123
154.4.1.1
3.3.3.3
I need to read these ip address then write a string plus the ip address to a one line string.
Exp of output txt file with "ip from txt file" would be the ip from the txt file read.
"sourceIP = '1.1.1.1' or destinationIP = '1.1.1.1' or sourceIP = '12.43.123.123' or destinationIP = '12.43.123.123'"
I have a txt file that contains 100 ip addresses with one on each line.
Exp of txt file:
1.1.1.1
12.43.123.123
154.4.1.1
3.3.3.3
I need to read these ip address then write a string plus the ip address to a one line string.
Exp of output txt file with "ip from txt file" would be the ip from the txt file read.
"sourceIP = '1.1.1.1' or destinationIP = '1.1.1.1' or sourceIP = '12.43.123.123' or destinationIP = '12.43.123.123'"