I am using HP UX and think this may be done with awk but bot sure.
I have a file with a several header records and undeneath many detail records I need to put in the header record the number of detail records above this header record and number of detail records below this header record
Header... (5 Replies)
Guys....
Got a scenario in which I need to skip parsing the header record while I do an awk.
Does awk has the flexibility to accomplish this?.
If so, how do we do this?.
Thanks !!!
-Anduzzi :) (2 Replies)
Hello Everyone
In my shell script, I am retrieving the cluster ID and node number of an LPAR using the following command -
lsclcfg -l
This command's output looks as follows -
CLUSTER_NAME CLUSTER_ID NODE_NR
sch1h004 6104567 3
I want to store only the... (3 Replies)
Hi everyone,
I've really searched for a solution to this and this is what I found so far:
I need to sort a command output (here represented as a "cat file" command) and from the second down to the second-last line based on the second row and then print ALL the output with the specified section... (7 Replies)
Hi All,
File contains header row.. we need to exclude the header row...no need to validate the first row in the file.
Data in the file should take valid data(two columns)..we need to exclude the more than two columns in the file except the first line.
email|firstname
a|123|100
b|345... (4 Replies)
Hi! all
can any one tell me how to compare current record of column with next and previous record in awk without using array
my case is like this
input.txt
0 32
1 26
2 27
3 34
4 26
5 25
6 24
9 23
0 32
1 28
2 15
3 26
4 24 (7 Replies)
Hi All,
i have script like ...
"TYPE_ID" "ID" "LIST_ID"
"18" "52010" "1059"
"18" "52010" "1059"
"18" "52010" "1059"
"18" "52010" "1059"
i am using the below code it's not taking the header row.
awk -F"\t" -v file=test1.txt -v file1=test2.txt ' {
if(... (7 Replies)
Hi Forum.
I'm struggling to find a solution for the following issue.
I have multiple files a1.txt, a2.txt, a3.txt, etc. and I would like to insert a tab-delimited header record at the beginning of each of the files.
This is my code so far but it's not working as expected.
for i in... (2 Replies)
Hi,
I have two input files; file1 and file2. I compare them based on matched values in 1 column and print selected columns of the second file (file2). I got the result but the header was not printed. i want the header of file2 to be printed together with the result. Then i did below codes:-
... (3 Replies)
Discussion started by: redse171
3 Replies
LEARN ABOUT DEBIAN
ldns-compare-zones
ldns-compare-zones(1) General Commands Manual ldns-compare-zones(1)NAME
ldns-compare-zones - read and compare two zonefiles and print differences
SYNOPSIS
ldns-compare-zones [-c] [-i] [-d] [-z] [-s] ZONEFILE1 ZONEFILE2
DESCRIPTION
ldns-compare-zones reads two DNS zone files and prints number of differences.
Output is formated to:
+NUM_INS -NUM_DEL ~NUM_CHG
The major comparison is based on the owner name. If an owner name is present in zonefile 1, but not in zonefile 2, the resource records
with this owner name are considered deleted, and counted as NUM_DEL. If an owner name is present in zonefile 2, but not in zonefile 1, the
resource records with this owner name are considered inserted, and counted as NUM_INS. If an owner name is present in both, but there is a
difference in the amount or content of the records, these are considered changed, and counted as NUM_CHG.
OPTIONS -c Print resource records whose owner names are in both zone files, but with different resource records. (a.k.a. changed)
-i Print resource records whose owner names are present only in ZONEFILE2 (a.k.a. inserted)
-d Print resource records whose owner names are present only in ZONEFILE1 (a.k.a. deleted)
-a Print all changes. Specifying this option is the same as specifying -c -i amd -d.
-z Suppress zone sorting; this option is not recommended; it can cause records to be incorrectly marked as changed, depending of the
nature of the changes.
-s Do not exclude the SOA record from the comparison. The SOA record may then show up as changed due to a new serial number. Off by
default since you may be interested to know if (other zone apex elements) have changed.
-h Show usage and exit
-v Show the version and exit
AUTHOR
Written by Ondej Sury <ondrej@sury.org> for CZ.NIC, z.s.p.o. (czech domain registry)
REPORTING BUGS
Report bugs to <ondrej@sury.org>.
COPYRIGHT
Copyright (C) 2005 CZ.NIC, z.s.p.o.. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
17 Oct 2007 ldns-compare-zones(1)