503112 script to put 1 extra line into dnsrecord

On my webserver there is a directory with about 250 files: *.db

all with the dns of domains. In every file there are nameserver lines like this:

domain.de. 14400 IN NS dns1.name.net.

domain.de. 14400 IN NS dns2.name.net.

domain.de. 14400 IN NS dns3.name.net.

About 140 files do not have the third line.

What I need is small script what:

a. checks if the file has this in it : [url removed, login to view]

b. if so, check if there is also [url removed, login to view]

c. if NOT, then add double line with dns2.name.net.

d. and change [url removed, login to view] in that line to [url removed, login to view]

Simplere solutions are welcome.

PS: bash script or other simple to run on linux server is welcome

Regards, Eef

Beceriler: Her şey Kabul, Linux, PHP, Kabuk Betiği

Daha fazlasını gör: in this line, bash directory script, db solutions, bash script directory, bash file, bash 0, on line d, ns#, Linux script, linux bash script, bash script, nameserver domain, linux check domain, run script linux, net run linux, dns name server, domain nameserver, change dns linux, dns nameserver, small dns server, welcome script, change dns server, simple dns, simple dns server, dns server net

İşveren Hakkında:
( 37 değerlendirme ) Rekken, Netherlands

Proje NO: #2249035



Can be done [login to view URL] PMB

%selectedBids___i_period_sub_7% gün içinde 25%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)