I have a text file with several lines that I want to join together (concatenate) in a text editor. I.e. without resorting to command line tools (especially on Windows where they might even not be available at all).
I am using Geany and its search and replace function with no success: tried replacing $ with nothing using (multiline) regex and \n with nothing using escape sequences.
Even multiline matching seems to replace only the content, leaving the (empty) lines as they are!
Is there any simple method for doing it?
\n
new lines and join all the lines as one single long line?geany
installed. but looking at the manual tells me that if you find\n
and replace withspace
- it should do the trick. Have u tried that? I also assume that you have checked theUse regular expressions
checkbox in the find and replace dialogvi
, a simple uppercaseJ
joins a line with the next one. It inserts a space character as a replacement of the line break.