Do the files only have one entry or is this just an example? If there are more than one, is the only way to determine the replacement the reversed IP? Can you post a representative sample (more than one line) of what you have and what you want?
The file2 contains commands for mysql (generated with a converting tool):
And file1 has only one column:
Both files have 255 lines.
What i need is the file2 like this:
insert into records (domain_id, name,type,content,ttl,prio) select id ,'1.2.3.10.in-addr.arpa', 'PTR', 'nameofserver.', 172800, 0 from domains where name='in-addr.arpa';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'2.2.3.10.in-addr.arpa', 'PTR', 'nameofserver.', 172800, 0 from domains where name='in-addr.arpa';
.
.
.
You need to read de file1?
I see that the unic modification is de one of then number in IP i think that is this the pattern and the file1 is in order 1,2,3,4,5 you don't need to read all the registrys of this file you only need the IP range.
You are right. Its Enough to do it how do describe.
If i do it how you describe i became this in file12:
Thats cool. I am convinced to learn awk in the furure. Now i have to be see how i can insert the ,' bevor and ', behind the reverse IP Adress. Because mysql need it. So that i have a output like this: