23 lines
154 B
Awk
Executable File
23 lines
154 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
|
|
BEGIN {
|
|
data = ""
|
|
}
|
|
|
|
/^\]/ {
|
|
gsub("},$","}",data)
|
|
print data
|
|
print
|
|
next
|
|
}
|
|
|
|
/},$/ {
|
|
print data
|
|
data = $0
|
|
next
|
|
}
|
|
|
|
{
|
|
data = $0
|
|
}
|