So, I've got a large text file with over 6,000 lines in it.
I've managed to do the first part of what I want, which is prefix any line that does NOT start with a tab character with a semicolon followed by a space, with some clever regular expressions.
Now what I'd like to do is this... any line that has been prefixed in the previous step should be merged with the line before it, by deleting the newline character separating them. My Google-fu is failing me on this matter, though.
I've managed to do the first part of what I want, which is prefix any line that does NOT start with a tab character with a semicolon followed by a space, with some clever regular expressions.
Now what I'd like to do is this... any line that has been prefixed in the previous step should be merged with the line before it, by deleting the newline character separating them. My Google-fu is failing me on this matter, though.