Hi Scrutinizer,
Thanks a million ! It worked perfectly !
---------- Post updated 06-25-12 at 01:26 AM ---------- Previous update was 06-24-12 at 07:14 PM ----------
Please let me ask one more question.
----
$ cat ./tmp/*.unix | awk '$2=="NOTIFICATION-TYPE"{split($0,F,/"/); printf "%10-s: \"%s\"\n",$1,F[2]}' RS=
linkUp : "A linkUp trap signifies that the SNMP entity, acting in an
<snip>
included value of ifOperStatus."
----
I am trying to remove "NEW LINES" within the "%s" as my goal is to have the strings like below. (single line per item)
----
linkUp : "A linkUp trap signifies that the SNMP entity, acting in an <snip> included value of ifOperStatus."
----
I think I need to add some knob in order to remove "\n" and while spaces within %s.