I have the following data, and I need to put it all into one line.
I have this:
22791 ; 14336 ; 22821 ; 34653 ; 21491 ; 25522 ; 33238 ; >
You are missing the most obvious and fast answer especially when you need to do this in GUI in order to fix some weird word-wrap.
Open gedit
gedit
Then Ctrl + H, then put in the Find textbox \n and in Replace with an empty space then fill checkbox Regular expression and voila.
Find
\n
Replace with
Regular expression