dnsmanager/bin/format.awk

31 lines
243 B
Awk
Executable File

#!/usr/bin/awk -f
BEGIN {
data = ""
}
/^\[/ || /^\]/ {
print
next
}
/^ {/ && /},$/ {
print $0
next
}
/^ {/ {
data = $0
next
}
/},$/ {
data = sprintf("%s %s", data, $0)
print data
next
}
{
data = sprintf("%s %s", data, $0)
}