dnsmanager/bin/format.awk

31 lines
243 B
Awk
Raw Normal View History

2024-06-08 23:23:05 +02:00
#!/usr/bin/awk -f
BEGIN {
data = ""
}
/^\[/ || /^\]/ {
print
2024-06-08 23:23:05 +02:00
next
}
/^ {/ && /},$/ {
print $0
next
}
/^ {/ {
data = $0
next
}
/},$/ {
data = sprintf("%s %s", data, $0)
print data
next
}
{
data = sprintf("%s %s", data, $0)
}