Ok, so I'm confusing myself alot... too much grep / sed / awk...
I have a file which I want to parse in bash:
hello = "goodbye" test = "this line is continued"
I can't seem to force sed, or anything else, to work with the line continuation...
maybe I can pre-parse it and remove newlines that have a "" before it... *shrug*
as you asked for new line removal, someone posted a link to advanced sed tricks, maybe you could modidy the one for newline-removal to remove only \n (in c-notation).
yeah, I would remove the newlines first..
sed '/\[ ]*$/N;s|\[ ]*n| |g'
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
I don't think that every new line should be removed, but this should do the trick (remove newline directly preceeded by a slash):
but don't ask me how it works - just copy and paste programming (I modified one script)