I am new to awk and programming is not my strong suit, especially on a UNIX machine. Hopefully someone out there
can point me in the right direction.
I receive the following output;
650 432 1001
(PUBLIC ( NAME TEST_1) (NONUNIQUE ) $)
(PRIVATE ( NAME TEST_2) (NONUNIQUE ) $)$
$
650 432 1005
(PUBLIC ( NAME PAULA_WILTON) $)
(PRIVATE ( NAME PAULA_WILTON) $)$
$
650 432 1012
(PUBLIC ( NAME VITAL_TRBL) $)
(PRIVATE ( NAME VITAL_TRBL) $)$
$
What I want to do is eliminate the line that has "PUBLIC"
in it and join the remaining two lines into one. I know how to get rid of the blank lines and the "PUBLIC" line but I cant seem to get it to join correctly. I read the first
line and the second line into an array but my array only
picks up the first field of each line. When I the output
file out all I get is one continious line of the first
field of each line.
Any thoughts would be appreciated.
can point me in the right direction.
I receive the following output;
650 432 1001
(PUBLIC ( NAME TEST_1) (NONUNIQUE ) $)
(PRIVATE ( NAME TEST_2) (NONUNIQUE ) $)$
$
650 432 1005
(PUBLIC ( NAME PAULA_WILTON) $)
(PRIVATE ( NAME PAULA_WILTON) $)$
$
650 432 1012
(PUBLIC ( NAME VITAL_TRBL) $)
(PRIVATE ( NAME VITAL_TRBL) $)$
$
What I want to do is eliminate the line that has "PUBLIC"
in it and join the remaining two lines into one. I know how to get rid of the blank lines and the "PUBLIC" line but I cant seem to get it to join correctly. I read the first
line and the second line into an array but my array only
picks up the first field of each line. When I the output
file out all I get is one continious line of the first
field of each line.
Any thoughts would be appreciated.