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