awk to the rescue!
Somewhat of a hack, but it works as far as my short testing goes:
Code:
BEGIN {
inq = 0;
RS="!"; # record separator
FS="\n";
}
/"/ {
if(inq) {
inq = 0;
}else{
inq = 1;
}
}
/$/ {
if(inq) {
printf "%s%s", $0, RS;
next;
}else{
print $0;
}
}
Running it:
Code:
zac@breeze:cboard (0) $ cat line | awk -f test.awk
var0:0x9453
var1:Some random string
var2:"Stop!" the woman
var3:00432123432123432885
zac@breeze:cboard (0) $ cat line
var0:0x9453!var1:Some random string!var2:"Stop!" the woman!var3:00432123432123432885