Hi
I'm trying to find a way to search a text file for a specific string.
I have a file which contains i.p. addresses and port numbers in the following format:
'ip="www.xxx.yyy.zzz"'
'port="xx""'
I want to print only the parts between the double quotes for use in seperate variables, if this makes sense. I do not want to store the i.p=" " or port=" " parts of the string.
Also the i.p. and corresponding port number are on the same line, if this helps.
This is what the actual line looks like:
<LS id="group1" ip="
www.xxx.yyy.zzz" port="
aa" acceptorthreads="1" security="off" defaultvs="http-test-http" servername="test.test.com" >
Thanks in advance.