Hi,
I am in need of a way to compare ( perhaps a shell script or Perl ) many db.X files that are located in 2 separate directories but strip out the first 11 lines from
;
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
;
; generated from:
;
and then take the SOA information from the file:
IN SOA pwedns1.internet.com. hostmaster.internet.com.
But only the SOA pwedns1.internet.com.
Then continue to the rest of the contents for each file and end before the word:
; END OF 208.116.70.0/24
;
then some how create a readable output to show what is different between all the contents of the two directories that contain the files starting with db.
I tried to use diff file1 and file2 but that gets me one file at a time and the output is not the best with < > and makes it hard to understand.
A sample of an entire db.X looks like, keep in mind some contain more information then others:
;
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
; THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT IT.
;
; generated from:
;
;
$TTL 3600
70.116.200.IN-ADDR.ARPA. IN SOA pwedns1.internet.com. hostmaster.internet.com. (
2008121203 ; Serial
900 ; Refresh
300 ; Retry
1209600 ; Expire
3600 ) ; Minimum
70.116.200.IN-ADDR.ARPA. IN NS pwedns1.internet.com.
70.116.200.IN-ADDR.ARPA. IN NS pmedns1.internet.com.
;
; END OF 200.116.70.0/24
;
Thanks in advance