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 ; >
xargs consumes newlines as well (but adds a final trailing newline):
xargs
xargs < file.txt | tr -d ' '