Hi,
I have to parse a huge html file and should replace every occurrence of an IP address by their DNS name. So, during the run I should be able to do a nslookup (or similar).
I can imagine also a two step version:
extract the IP adresses first and create a lookup table
<IP> <DNS name>
<IP> <DNS name>
...
and use this table for replacing the IP addresses in the html file (to prevent the nslookup during the script run).
I'm not sure if awk is my solution.
Any help or pointer is verry welcome.
- ziwo
I have to parse a huge html file and should replace every occurrence of an IP address by their DNS name. So, during the run I should be able to do a nslookup (or similar).
I can imagine also a two step version:
extract the IP adresses first and create a lookup table
<IP> <DNS name>
<IP> <DNS name>
...
and use this table for replacing the IP addresses in the html file (to prevent the nslookup during the script run).
I'm not sure if awk is my solution.
Any help or pointer is verry welcome.
- ziwo