Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- awk 'BEGIN {ORS=""; FS="[: \t\n]+";print "{\"data\":["} {if ($0 !~ /[0-9]+ SIP registrations|Host +dnsmgr +Username +Refresh +State +Reg.Time/) printf "%s{\"{#TRUNKNAME}\" : \"%s\"}" ,separator,$4, separator = ", "} END { print "]}"}'
Advertisement
Add Comment
Please, Sign In to add comment